diff options
author | Yang Tse <yangsita@gmail.com> | 2010-11-30 22:14:37 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-11-30 22:14:37 +0100 |
commit | 11cddb68e0ff73c8297b85e51bebaf6f968a8d62 (patch) | |
tree | 92c287a27561496b0be9f35faba35ef9c6bcc580 /lib/url.c | |
parent | 1b2b93e0746ed09daf62ffc55cff1dcaaa3dff09 (diff) |
fix getinfo CURLINFO_LOCAL* for reused connections (take 2)
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4599,7 +4599,8 @@ static void reuse_conn(struct connectdata *old_conn, else free(old_conn->host.rawalloc); /* free the newly allocated name buffer */ - strcpy(conn->ip_addr_str, old_conn->ip_addr_str); + /* persist connection info in session handle */ + Curl_persistconninfo(conn); /* re-use init */ conn->bits.reuse = TRUE; /* yes, we're re-using here */ |