From: Anatol Belski Date: Sat, 13 Sep 2014 22:00:52 +0000 (+0200) Subject: removed the emalloc result check, out of memory will bailout X-Git-Tag: PRE_NATIVE_TLS_MERGE~150^2~18^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26cf7df1337e755f8ec709c316f97ab2c23ce8e8;p=php removed the emalloc result check, out of memory will bailout --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index d7b62e186d..45fa637c0d 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -587,9 +587,6 @@ finish: /* ensure the header is only sent if user_agent is not blank */ if (ua_len > sizeof(_UA_HEADER)) { ua = emalloc(ua_len + 1); - if (NULL == ua) { - return NULL; - } if ((ua_len = slprintf(ua, ua_len, _UA_HEADER, ua_str)) > 0) { ua[ua_len] = 0; php_stream_write(stream, ua, ua_len);