Skip to content

Commit

Permalink
conncache: fix a return code [regression]
Browse files Browse the repository at this point in the history
This broke in 07cb27c. Make sure to return 'result' properly. Pointed
out by scan-build!
  • Loading branch information
bagder committed Dec 12, 2017
1 parent 5d0ba70 commit 41982b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/conncache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41982b6

Please sign in to comment.