]> granicus.if.org Git - curl/commitdiff
fix out of memory handling issue
authorYang Tse <yangsita@gmail.com>
Fri, 6 Apr 2007 20:53:15 +0000 (20:53 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 6 Apr 2007 20:53:15 +0000 (20:53 +0000)
lib/http.c

index b59779b1bccd3c2547c9ecdb1ccf47e405036a0e..011f1141e9c5a3b18f06a8689fcba6420b8b90a9 100644 (file)
@@ -1170,7 +1170,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
           if(!host) {
             free(req_buffer);
             free(host_port);
-            result = CURLE_OUT_OF_MEMORY;
+            return CURLE_OUT_OF_MEMORY;
           }
         }
         if(!checkheaders(data, "Proxy-Connection:"))