diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-04-03 10:20:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-04-03 10:20:23 +0000 |
commit | 28497e7ee40e8e2bf3c50f20c311bf9abff34ea6 (patch) | |
tree | 85bbe960cfe2dedad25122fab285a7d876ee55b1 /lib/transfer.c | |
parent | 87c7f403a9a6d1f57bc50a322ce506775ca25395 (diff) |
better error checks for failure conditions (based on Puneet Pawaia's reports)
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 1f2c6886f..48706c544 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -955,7 +955,7 @@ CURLcode Curl_perform(CURL *curl) } while(1); /* loop if Location: */ - if(conn->newurl) { + if((CURLE_OK == res) && conn->newurl) { free(conn->newurl); conn->newurl = NULL; } |