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
1 changed files with 1 additions and 0 deletions

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;
}