This commit is contained in:
Ilia Alshanetsky 2008-01-07 15:13:17 +00:00
parent e24c17f9b4
commit 016ee0bf39

View File

@ -226,8 +226,9 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
}
}
if (stream == NULL)
if (stream == NULL) {
goto out;
}
/* avoid buffering issues while reading header */
if (options & STREAM_WILL_CAST)
@ -312,7 +313,6 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
strlcat(scratch, " HTTP/1.0\r\n", scratch_len);
}
/* send it */
php_stream_write(stream, scratch, strlen(scratch));