better error checks for failure conditions (based on Puneet Pawaia's reports)

This commit is contained in:
Daniel Stenberg
2001-04-03 10:20:23 +00:00
parent 87c7f403a9
commit 28497e7ee4
3 changed files with 16 additions and 9 deletions

View File

@@ -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;
}