Curl_retry_request: check return code!
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2011 22:51:16 +0000 (00:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2011 22:51:16 +0000 (00:51 +0200)
Curl_readrewind() was called without checking its return code, which
could lead to badness.

Bug: http://curl.haxx.se/bug/view.cgi?id=3349227

lib/transfer.c

index f019bb0..f1896b0 100644 (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;
 }