diff options
author | Frank M. Kromann <fmk@php.net> | 2010-01-13 05:32:02 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2010-01-13 05:32:02 +0000 |
commit | 1709009f1d950fd0a797eed40cb0d5a5271b1c9f (patch) | |
tree | 1b0727d8bd0bc8160cbe3841b3921cc92f0698d8 /ext/soap/php_http.c | |
parent | 218eba34ee1edf359eb4f6045979749b13a1ba88 (diff) | |
download | php-git-1709009f1d950fd0a797eed40cb0d5a5271b1c9f.tar.gz |
Don't free soap_headers just before comparing the length. This causes SoapClient to fail when requesting a URL
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 23432f511d..6257e79151 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -759,7 +759,6 @@ try_again: smart_str_0(&soap_headers); err = php_stream_write(stream, soap_headers.c, soap_headers.len); - smart_str_free(&soap_headers); if (err != soap_headers.len) { if (request != buf) {efree(request);} php_stream_close(stream); @@ -770,6 +769,7 @@ try_again: smart_str_free(&soap_headers_z); return FALSE; } + smart_str_free(&soap_headers); } else { add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL TSRMLS_CC); smart_str_free(&soap_headers_z); |