diff options
-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, |