aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-03-10 22:51:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-03-10 22:51:20 +0000
commit09c70dec08529a2a9c552681c8e7c5c1c3f3a6ae (patch)
tree7e0ab165d387755fc5f1542268e20fbef2527e7c /lib
parent0dc570862afe1b71e5eac257833a86e67874c6c7 (diff)
Eygene Ryabinkin fixed a use-after-free issue with HTTP transfers with the
multi interface
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index b80d79239..644cec39a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4240,6 +4240,10 @@ CURLcode Curl_done(struct connectdata **connp,
infof(data, "Connection #%ld to host %s left intact\n",
conn->connectindex,
conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname);
+
+ *connp = NULL; /* to make the caller of this function better detect that
+ this connection is handed over and no longer used from
+ this point on */
}
return result;