Eygene Ryabinkin fixed a use-after-free issue with HTTP transfers with the

multi interface
This commit is contained in:
Daniel Stenberg
2007-03-10 22:51:20 +00:00
parent 0dc570862a
commit 09c70dec08
3 changed files with 26 additions and 1 deletions

View File

@@ -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;