aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-04-04 23:41:35 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-04-04 23:41:35 +0000
commitc321b9f7046e96aa269635d9deafa357a118e88c (patch)
tree7f89ef27f77718bce8d69afa9e9fd6daf82d9d56 /lib/url.c
parent7e74349b86386f0fb33e7323f70b10300d64eaf3 (diff)
Fixes some more out of memory handling bugs.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 0ae0197d3..edbd1157c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2856,6 +2856,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Initialize the pipeline lists */
conn->send_pipe = Curl_llist_alloc((curl_llist_dtor) llist_dtor);
conn->recv_pipe = Curl_llist_alloc((curl_llist_dtor) llist_dtor);
+ if (!conn->send_pipe || !conn->recv_pipe)
+ return CURLE_OUT_OF_MEMORY;
/* Store creation time to help future close decision making */
conn->created = Curl_tvnow();