diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-10-07 11:56:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-10-07 11:56:19 +0000 |
commit | 2cbe63513c00431a61742239e3fcbe50164a2611 (patch) | |
tree | f39c07e7fcc01aceeeb700ae82f278d55bcb571d /ext/soap/php_http.c | |
parent | e011229598d8a7110f06bf0aecf965e042633ceb (diff) | |
download | php-git-2cbe63513c00431a61742239e3fcbe50164a2611.tar.gz |
Fixed bug #34766 (possible crash on HTTP redirection)
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 6da386f7dd..8c3b92b194 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -836,6 +836,7 @@ try_again: php_stream_close(stream); zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); + stream = NULL; } /* Process HTTP status codes */ @@ -848,13 +849,6 @@ try_again: int body_size; if (new_url != NULL) { - if (get_http_body(stream, !http_1_1, http_headers, &body, &body_size TSRMLS_CC)) { - efree(body); - } else { - php_stream_close(stream); - zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); - stream = NULL; - } efree(http_headers); efree(http_body); efree(loc); |