From 28497e7ee40e8e2bf3c50f20c311bf9abff34ea6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 3 Apr 2001 10:20:23 +0000 Subject: better error checks for failure conditions (based on Puneet Pawaia's reports) --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/transfer.c') 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; } -- cgit v1.2.3