mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
@ -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…
Reference in New Issue
Block a user