summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-10 14:59:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-10 15:02:11 +0100
commit3619ee5febb220de917db642352f9ea4fc3e7843 (patch)
treed6d7416c4a9acef88f654000f81c6b9fa2c92a5b
parent2671f5f7cfc2bdd061823858e2d6d7ac2f0747a4 (diff)
downloadcurl-3619ee5febb220de917db642352f9ea4fc3e7843.tar.gz
curl_share_setopt: va_end was not called if conncache errors
CID 984459, detected by Coverity
-rw-r--r--lib/share.c2
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: