diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-05-17 08:04:42 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-17 08:04:42 +0000 | 
| commit | d7cb09bd18f98dd870198e9474f4315f48d28daa (patch) | |
| tree | 74da84bd89e7f6414860933ff908d390aaf68087 | |
| parent | e11710714c64f90a254dbd804f6bbf2380a28f2b (diff) | |
better bailing out on memory failure
| -rw-r--r-- | lib/multi.c | 5 | 
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; +          }          }        } | 
