mirror of
https://github.com/curl/curl.git
synced 2026-07-31 18:28:05 +03:00
better error checks for failure conditions (based on Puneet Pawaia's reports)
This commit is contained in:
parent
87c7f403a9
commit
28497e7ee4
3 changed files with 16 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue