mirror of
https://github.com/curl/curl.git
synced 2026-07-31 14:58:02 +03:00
Curl_wait_for_resolv() no longer disconnects on failure, but leaves that
operation to the caller. Disconnecting has the disadvantage that the conn pointer gets completely invalidated and this is not handled on lots of places in the code.
This commit is contained in:
parent
e4a1788614
commit
e36fb1ecda
2 changed files with 3 additions and 1 deletions
|
|
@ -2038,6 +2038,8 @@ Curl_connect_host(struct SessionHandle *data,
|
|||
if(CURLE_OK == res)
|
||||
/* Resolved, continue with the connection */
|
||||
res = Curl_async_resolved(*conn);
|
||||
else
|
||||
(void)Curl_disconnect(*conn);
|
||||
}
|
||||
if(res)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue