summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-14 00:00:52 +0200
committerAnatol Belski <ab@php.net>2014-09-14 00:00:52 +0200
commit26cf7df1337e755f8ec709c316f97ab2c23ce8e8 (patch)
treefe99a1e66205304323e80ffb92611f9625a45191 /ext/standard
parent7d194a0e0b3b396cb5177dd3698d77fa6228e582 (diff)
downloadphp-git-26cf7df1337e755f8ec709c316f97ab2c23ce8e8.tar.gz
removed the emalloc result check, out of memory will bailout
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/http_fopen_wrapper.c3
1 files changed, 0 insertions, 3 deletions
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);