Commit e40c663d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent c8766ed3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}