Fixed another OOM problem, this time with test 64.

This commit is contained in:
Dan Fandrich 2008-07-10 18:15:22 +00:00
parent 08ac9866e0
commit 6f3ef94836
1 changed files with 4 additions and 1 deletions

View File

@ -2386,8 +2386,11 @@ CURLcode Curl_perform(struct SessionHandle *data)
if(res == CURLE_OK) {
bool retry = Curl_retry_request(conn, &newurl);
if(retry)
if(retry) {
follow = FOLLOW_RETRY;
if (!newurl)
res = CURLE_OUT_OF_MEMORY;
}
else {
/*
* We must duplicate the new URL here as the connection data may