Curl_retry_request: check return code!

Curl_readrewind() was called without checking its return code, which
could lead to badness.

Bug: http://curl.haxx.se/bug/view.cgi?id=3349227
This commit is contained in:
Daniel Stenberg 2011-08-13 00:51:16 +02:00
parent c8766ed3fb
commit e40c663d36
1 changed files with 1 additions and 1 deletions

View File

@ -2081,7 +2081,7 @@ CURLcode Curl_retry_request(struct connectdata *conn,
transferred! */
if(data->state.proto.http->writebytecount)
Curl_readrewind(conn);
return Curl_readrewind(conn);
}
return CURLE_OK;
}