better error checks for failure conditions (based on Puneet Pawaia's reports)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user