1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Giuseppe Attardi fixed a really tricky bug

This commit is contained in:
Daniel Stenberg 2003-12-15 14:48:37 +00:00
parent 0839d6e6bc
commit 50e7545118
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,10 @@
Changelog Changelog
Daniel (15 December)
- Giuseppe Attardi found and fixed a problem within libcurl that re-used
already freed memory.
Daniel (10 December) Daniel (10 December)
- Gisle Vanem reported that the dict support was broken. I broke it during my - Gisle Vanem reported that the dict support was broken. I broke it during my
ftps-changes overhaul. I've now added a 'curlassert' function that can be ftps-changes overhaul. I've now added a 'curlassert' function that can be

View File

@ -3281,6 +3281,9 @@ CURLcode Curl_do(struct connectdata **connp)
conn->bits.close = TRUE; /* enforce close of this connetion */ conn->bits.close = TRUE; /* enforce close of this connetion */
result = Curl_done(conn); /* we are so done with this */ result = Curl_done(conn); /* we are so done with this */
/* conn is no longer a good pointer */
if(CURLE_OK == result) { if(CURLE_OK == result) {
bool async; bool async;
/* Now, redo the connect and get a new connection */ /* Now, redo the connect and get a new connection */
@ -3288,6 +3291,7 @@ CURLcode Curl_do(struct connectdata **connp)
if(CURLE_OK == result) { if(CURLE_OK == result) {
/* We have connected or sent away a name resolve query fine */ /* We have connected or sent away a name resolve query fine */
conn = *connp; /* setup conn to again point to something nice */
if(async) { if(async) {
/* Now, if async is TRUE here, we need to wait for the name /* Now, if async is TRUE here, we need to wait for the name
to resolve */ to resolve */