1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

failing to resolve a name using ares must Curl_disconnect() the handle

properly or risk getting into trouble!
This commit is contained in:
Daniel Stenberg 2003-09-21 23:10:47 +00:00
parent f40467638d
commit 8aa2894bfb

View File

@ -375,6 +375,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
if(CURLE_OK != easy->result) {
/* failure detected */
Curl_disconnect(easy->easy_conn); /* disconnect properly */
easy->easy_conn = NULL; /* no more connection */
break;
}