com php-src: removed the emalloc result check, out of memory will bailout: ext/standard/http_fopen_wrapper.c

From: Date: Sat, 13 Sep 2014 22:00:52 +0000
Subject: com php-src: removed the emalloc result check, out of memory will bailout: ext/standard/http_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81571@lists.php.net to get a copy of this message
Commit: 26cf7df1337e755f8ec709c316f97ab2c23ce8e8 Author: Anatol Belski <ab@php.net> Sun, 14 Sep 2014 00:00:52 +0200 Parents: 7d194a0e0b3b396cb5177dd3698d77fa6228e582 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=26cf7df1337e755f8ec709c316f97ab2c23ce8e8 Log: removed the emalloc result check, out of memory will bailout Changed paths: M ext/standard/http_fopen_wrapper..c Diff: diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index d7b62e1..45fa637 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);

« previous php.cvs (#81571) next »