aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 6195d21e3..939966dde 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -397,7 +397,10 @@ CURLcode curl_easy_perform(CURL *easy)
mcode = curl_multi_add_handle(multi, easy);
if(mcode) {
curl_multi_cleanup(multi);
- return CURLE_FAILED_INIT;
+ if(mcode == CURLM_OUT_OF_MEMORY)
+ return CURLE_OUT_OF_MEMORY;
+ else
+ return CURLE_FAILED_INIT;
}
/* we start some action by calling perform right away */