aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-24 00:09:41 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-24 00:09:41 +0100
commit4f8db8bf957b4e3efafa517ba14770dac7781204 (patch)
tree793027003715f60434840d0e95db4a6d11d8eeaf
parent5ac9ec7205a1df753ecd8827f63878a445c44d6a (diff)
Curl_do_more: fix typo logic
In the recent do_more fix the new logic was mistakenly checking the pointer instead of what it points to. Reported by: Gokhan Sengun Bug: http://curl.haxx.se/mail/lib-2011-12/0250.html
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 75b298706..a95426fe6 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -5466,7 +5466,7 @@ CURLcode Curl_do_more(struct connectdata *conn, bool *completed)
if(conn->handler->do_more)
result = conn->handler->do_more(conn, completed);
- if(!result && completed)
+ if(!result && *completed)
/* do_complete must be called after the protocol-specific DO function */
do_complete(conn);