mirror of
https://github.com/curl/curl.git
synced 2026-05-19 21:56:22 +03:00
copy the name properly when re-using a connection
This commit is contained in:
parent
f470a131a6
commit
2cf26d4fb7
1 changed files with 3 additions and 2 deletions
|
|
@ -2022,8 +2022,9 @@ static CURLcode Connect(struct UrlData *data,
|
|||
free(conn->path); /* free the previous path pointer */
|
||||
|
||||
/* we need these pointers if we speak over a proxy */
|
||||
conn->name = old_conn->name;
|
||||
conn->hostname = old_conn->hostname;
|
||||
strcpy(conn->gname, old_conn->gname); /* copy the name */
|
||||
conn->name = conn->gname;
|
||||
conn->hostname = old_conn->gname;
|
||||
|
||||
conn->path = path; /* use this one */
|
||||
conn->ppath = path; /* set this too */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue