diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-08-13 00:51:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-08-13 00:51:16 +0200 |
commit | e40c663d36af128890f878bfce780a45bf2158a5 (patch) | |
tree | c280dc8b0ad6419ef81838db40e5dd048d18a20d | |
parent | c8766ed3fb72ed67fbc78541e04696c9e9237dba (diff) |
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
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index f019bb00e..f1896b013 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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; } |