diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-26 11:15:25 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-26 11:15:25 +0000 |
commit | 012d7e28789cf6299c16beb1a95710a95ea97258 (patch) | |
tree | 7cabfb74906f91f678bd9a53d202152e9d652d79 /lib | |
parent | cd3029f36f762c81313a5750bed7a5d80b11ffee (diff) |
Fix Curl_open() not reporting failure when allocation of the
buffer used to store headers in the SessionHandle failed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 3 insertions, 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, |