]> granicus.if.org Git - curl/commitdiff
Curl_do_more: fix typo logic
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Dec 2011 23:09:41 +0000 (00:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Dec 2011 23:09:41 +0000 (00:09 +0100)
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

lib/url.c

index 75b298706f58eaec7962d62a7ac28cf7938d02e1..a95426fe6182e01dde4877e0734e5aaba8870744 100644 (file)
--- 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);