]> granicus.if.org Git - curl/commitdiff
conncache: fix a return code [regression]
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Dec 2017 22:53:56 +0000 (23:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Dec 2017 22:54:35 +0000 (23:54 +0100)
This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed
out by scan-build!

lib/conncache.c

index 43d885131f55590521404a7c421c70df31cdaea5..b8f54448567c65060876b386ceff1b0349895c2c 100644 (file)
@@ -307,7 +307,7 @@ CURLcode Curl_conncache_add_conn(struct conncache *connc,
   unlock:
   CONN_UNLOCK(data);
 
-  return CURLE_OK;
+  return result;
 }
 
 void Curl_conncache_remove_conn(struct connectdata *conn, bool lock)