mirror of
https://github.com/curl/curl.git
synced 2025-01-12 13:55:11 +08:00
cfilters: make Curl_conn_connect always assign 'done'
It could return error without assigning it, and we have a caller in multi.c that assumes it gets set. Spotted by CodeSonar Closes #13884
This commit is contained in:
parent
1313da9a1d
commit
f75aa2857f
@ -345,8 +345,10 @@ CURLcode Curl_conn_connect(struct Curl_easy *data,
|
||||
|
||||
cf = data->conn->cfilter[sockindex];
|
||||
DEBUGASSERT(cf);
|
||||
if(!cf)
|
||||
if(!cf) {
|
||||
*done = FALSE;
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
*done = cf->connected;
|
||||
if(!*done) {
|
||||
|
Loading…
Reference in New Issue
Block a user