summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-12 23:53:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-12 23:54:35 +0100
commit41982b6ac9f40b76a7ff967aff0eab6be753040a (patch)
treee8ec0df398ef142562bd2b4d56be869a499a2ac7 /lib/conncache.c
parent5d0ba70e17bde74d9a9108c38558f6491d2b5c4d (diff)
downloadcurl-41982b6ac9f40b76a7ff967aff0eab6be753040a.tar.gz
conncache: fix a return code [regression]
This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed out by scan-build!
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index 43d885131..b8f544485 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -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)