aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-23 17:06:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-23 17:06:21 +0000
commite9f63bf4e84dfdc22b6fb0469747b9067b90943b (patch)
tree1e5265e1461127f1fbd6258e54c739862831c1b7
parent556ce1c6a126825f1b525f1c539cd9a0509aed47 (diff)
When we re-use an existing connection we must make sure that we don't
accidentally re-use the connect_addr field, as that might no longer be around. Fix verified by Tracy Boehrer who basicly debugged and tracked down this problem.
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 13f944d1d..d230db180 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2901,6 +2901,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(conn->bits.reuse) {
/* re-used connection, no resolving is necessary */
hostaddr = NULL;
+ conn->connect_addr = NULL; /* we don't connect now so we don't have any
+ fresh connect_addr struct to point to */
}
else if(!data->change.proxy || !*data->change.proxy) {
/* If not connecting via a proxy, extract the port from the URL, if it is