aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-03 10:20:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-03 10:20:23 +0000
commit28497e7ee40e8e2bf3c50f20c311bf9abff34ea6 (patch)
tree85bbe960cfe2dedad25122fab285a7d876ee55b1 /lib/transfer.c
parent87c7f403a9a6d1f57bc50a322ce506775ca25395 (diff)
better error checks for failure conditions (based on Puneet Pawaia's reports)
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c2
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;
}