aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 8a280aff4..8165c9298 100644
--- 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;
}