Commit 8341e8e5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Clear the connection pointer after the async resolve has failed.

This cures the problem reported by Giuseppe Attardi on October 12, 2003.
parent e85881d7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -370,6 +370,11 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
             to the WAITCONNECT state */
          easy->result = Curl_async_resolved(easy->easy_conn);

          if(CURLE_OK != easy->result)
            /* if Curl_async_resolved() returns failure, the connection struct
               is already freed and gone */
            easy->easy_conn = NULL;           /* no more connection */

          easy->state = CURLM_STATE_WAITCONNECT;
        }