projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8766ed
)
Curl_retry_request: check return code!
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 12 Aug 2011 22:51:16 +0000
(
00:51
+0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
f019bb0
..
f1896b0
100644
(file)
--- 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;
}