Fix Curl_open() not reporting failure when allocation of the

buffer used to store headers in the SessionHandle failed.
This commit is contained in:
Yang Tse 2006-10-26 11:15:25 +00:00
parent cd3029f36f
commit 012d7e2878

View File

@ -564,9 +564,10 @@ CURLcode Curl_open(struct SessionHandle **curl)
free(data); free(data);
data = NULL; data = NULL;
} }
else
*curl = data;
*curl = data; return res;
return CURLE_OK;
} }
CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,