mirror of
https://github.com/curl/curl.git
synced 2026-05-16 17:36:20 +03: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue