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:
parent
5d0ba70e17
commit
41982b6ac9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user