]> granicus.if.org Git - curl/commitdiff
Fixed another OOM problem, this time with test 64.
authorDan Fandrich <dan@coneharvesters.com>
Thu, 10 Jul 2008 18:15:22 +0000 (18:15 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 10 Jul 2008 18:15:22 +0000 (18:15 +0000)
lib/transfer.c

index 11202af800f64d5f680af7d3992f91657cb3e293..91e3f5908e1eb03200be4ad0e0c4aeb74da2f207 100644 (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