mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:23:32 +03:00
When we re-use an existing connection we must make sure that we don't
accidentally re-use the connect_addr field, as that might no longer be around. Fix verified by Tracy Boehrer who basicly debugged and tracked down this problem.
This commit is contained in:
parent
556ce1c6a1
commit
e9f63bf4e8
1 changed files with 2 additions and 0 deletions
|
|
@ -2901,6 +2901,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||||
if(conn->bits.reuse) {
|
if(conn->bits.reuse) {
|
||||||
/* re-used connection, no resolving is necessary */
|
/* re-used connection, no resolving is necessary */
|
||||||
hostaddr = NULL;
|
hostaddr = NULL;
|
||||||
|
conn->connect_addr = NULL; /* we don't connect now so we don't have any
|
||||||
|
fresh connect_addr struct to point to */
|
||||||
}
|
}
|
||||||
else if(!data->change.proxy || !*data->change.proxy) {
|
else if(!data->change.proxy || !*data->change.proxy) {
|
||||||
/* If not connecting via a proxy, extract the port from the URL, if it is
|
/* If not connecting via a proxy, extract the port from the URL, if it is
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue