aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-17 08:04:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-17 08:04:42 +0000
commitd7cb09bd18f98dd870198e9474f4315f48d28daa (patch)
tree74da84bd89e7f6414860933ff908d390aaf68087
parente11710714c64f90a254dbd804f6bbf2380a28f2b (diff)
better bailing out on memory failure
-rw-r--r--lib/multi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 66a581f65..673a0f6cc 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -342,8 +342,11 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
else
free(gotourl);
}
- else
+ else {
easy->result = CURLE_OUT_OF_MEMORY;
+ easy->state = CURLM_STATE_COMPLETED;
+ break;
+ }
}
}