diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-17 08:05:46 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-17 08:05:46 +0000 |
commit | 8001921112f726c10caa09d0725f90230636dea6 (patch) | |
tree | 7e9bd378737fd740ba24e4f3e76520e3a617a91d /lib/transfer.c | |
parent | d7cb09bd18f98dd870198e9474f4315f48d28daa (diff) |
I made Curl_done() take a pointer-pointer in the first argument instead, and
if the connection is killed it blanks the pointer it points to, to make it
easier to detect usage problems whereever Curl_done() is used.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index ac343e858..b8ccfe256 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1969,7 +1969,7 @@ CURLcode Curl_perform(struct SessionHandle *data) to the new URL */ urlchanged = data->change.url_changed; if ((CURLE_OK == res) && urlchanged) { - res = Curl_done(conn, res); + res = Curl_done(&conn, res); if(CURLE_OK == res) { char *gotourl = strdup(data->change.url); res = Curl_follow(data, gotourl); @@ -2026,14 +2026,14 @@ CURLcode Curl_perform(struct SessionHandle *data) /* Always run Curl_done(), even if some of the previous calls failed, but return the previous (original) error code */ - res2 = Curl_done(conn, res); + res2 = Curl_done(&conn, res); if(CURLE_OK == res) res = res2; } else /* Curl_do() failed, clean up left-overs in the done-call */ - res2 = Curl_done(conn, res); + res2 = Curl_done(&conn, res); /* * Important: 'conn' cannot be used here, since it may have been closed |