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

View File

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