mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:53:37 +03:00
wait_or_timeout: return failure when Curl_poll() fails
Coverity detected this. CID 1241954. When Curl_poll() returns a negative value 'mcode' was uninitialized. Pretty harmless since this is debug code only and would at worst cause an error to _not_ be returned...
This commit is contained in:
parent
69ce8a72f5
commit
a8ec986981
1 changed files with 3 additions and 0 deletions
|
|
@ -630,6 +630,9 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
|
|||
ev->ms += curlx_tvdiff(after, before);
|
||||
|
||||
}
|
||||
else
|
||||
return CURLE_RECV_ERROR;
|
||||
|
||||
if(mcode)
|
||||
return CURLE_URL_MALFORMAT; /* TODO: return a proper error! */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue