]> granicus.if.org Git - curl/commitdiff
mark connect failures as non-connected when ConnectPlease() fails, like when
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Jun 2007 13:41:50 +0000 (13:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Jun 2007 13:41:50 +0000 (13:41 +0000)
a connection through a socks proxy doesn't work

lib/url.c

index 8a280aff4f3e8e910f488964ff72dad751fe3136..8165c9298fc5e13d07def079f370175d73aac0b2 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2346,6 +2346,8 @@ static CURLcode ConnectPlease(struct SessionHandle *data,
       break;
     }
   }
+  if(result)
+    *connected = FALSE; /* mark it as not connected */
 
   return result;
 }