1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 07:38:49 -05:00

conncache: fix a return code [regression]

This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed
out by scan-build!
This commit is contained in:
Daniel Stenberg 2017-12-12 23:53:56 +01:00
parent 5d0ba70e17
commit 41982b6ac9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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)