From: Daniel Stenberg Date: Fri, 23 Mar 2001 07:46:14 +0000 (+0000) Subject: ConnectionExists() wrongly returned TRUE for too many connections if proxy X-Git-Tag: upstream/7.37.1~16886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76576cd1e28ad07f098de464f6da1c93e262f652;p=platform%2Fupstream%2Fcurl.git ConnectionExists() wrongly returned TRUE for too many connections if proxy was not used... --- diff --git a/lib/url.c b/lib/url.c index b8c4232..d7f1f00 100644 --- a/lib/url.c +++ b/lib/url.c @@ -936,9 +936,11 @@ ConnectionExists(struct UrlData *data, data->connects[i]=NULL; /* nothing here */ continue; /* try another one now */ } + + *usethis = check; + return TRUE; /* yes, we found one to use! */ + } - *usethis = check; - return TRUE; /* yes, we found one to use! */ } else { /* The requested needle connection is using a proxy, is the checked one using the same? */