aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-06 20:53:15 +0000
committerYang Tse <yangsita@gmail.com>2007-04-06 20:53:15 +0000
commit0d635a11199c3eae6f2ad8cb02e588fe189cd3c7 (patch)
tree6df3a79e7c104f449b955fdbf0039970d539ea28
parente9ffa9a3b8bb4d44145b98d063dc2f45d409dccb (diff)
fix out of memory handling issue
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index b59779b1b..011f1141e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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:"))