diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2014-10-02 22:52:23 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-02 22:52:23 +0200 | 
| commit | a8ec986981d6a218ce3abac27b9e0b0e76286863 (patch) | |
| tree | 515dd3e386ad217904b4b392e0c2ad35735a65cf | |
| parent | 69ce8a72f58f98f2ff93561fcc49c83107f9ce4f (diff) | |
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...
| -rw-r--r-- | lib/easy.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lib/easy.c b/lib/easy.c index 160712e8f..1408aa8ac 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -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! */ | 
