mirror of
https://github.com/curl/curl.git
synced 2026-07-22 18:57:15 +03:00
Fix Curl_open() not reporting failure when allocation of the
buffer used to store headers in the SessionHandle failed.
This commit is contained in:
parent
cd3029f36f
commit
012d7e2878
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue