mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08: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
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user