]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
return on memory alloc fail
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 May 2004 15:17:49 +0000 (15:17 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 May 2004 15:17:49 +0000 (15:17 +0000)
lib/multi.c

index fe03a5dde9da4a0d1e9929cd3e7bb2130ee9e5f3..d2a3f9c2490364bbb16a37f5538fc5b747f9d9ef 100644 (file)
@@ -120,6 +120,8 @@ CURLM *curl_multi_init(void)
     memset(multi, 0, sizeof(struct Curl_multi));
     multi->type = CURL_MULTI_HANDLE;
   }
+  else
+    return NULL;
 
   multi->hostcache = Curl_mk_dnscache();
   if(!multi->hostcache) {