diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-11-10 14:59:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-11-10 15:02:11 +0100 |
commit | 3619ee5febb220de917db642352f9ea4fc3e7843 (patch) | |
tree | d6d7416c4a9acef88f654000f81c6b9fa2c92a5b /lib | |
parent | 2671f5f7cfc2bdd061823858e2d6d7ac2f0747a4 (diff) |
curl_share_setopt: va_end was not called if conncache errors
CID 984459, detected by Coverity
Diffstat (limited to 'lib')
-rw-r--r-- | lib/share.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/share.c b/lib/share.c index c1ce1aab1..870b191fc 100644 --- a/lib/share.c +++ b/lib/share.c @@ -103,7 +103,7 @@ curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...) case CURL_LOCK_DATA_CONNECT: /* not supported (yet) */ if(Curl_conncache_init(&share->conn_cache, 103)) - return CURLSHE_NOMEM; + res = CURLSHE_NOMEM; break; default: |