diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-01-09 16:35:04 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-01-09 16:35:04 +0000 |
commit | d9328fb38eaf47b8308197bd9bb5f39091daf569 (patch) | |
tree | fa0757b0c911591d093811bddb6329b3ed879b75 /ext/soap/php_http.c | |
parent | 5e57f973cc932264229027df50cdae97af2db09e (diff) | |
download | php-git-d9328fb38eaf47b8308197bd9bb5f39091daf569.tar.gz |
BUGFIX: close string with smart_str_0()
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 41bc85ec95..5d7415b5b0 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -163,6 +163,7 @@ int send_http_soap_request(zval *this_ptr, xmlDoc *doc, char *soapaction TSRMLS_ if(zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) == SUCCESS) { smart_str_appendl(&auth, Z_STRVAL_PP(password), Z_STRLEN_PP(password)); } + smart_str_0(&auth); buf = php_base64_encode(auth.c, auth.len, &len); smart_str_append_const(&soap_headers, "Authorization: Basic "); smart_str_appendl(&soap_headers, buf, len); @@ -194,6 +195,7 @@ int send_http_soap_request(zval *this_ptr, xmlDoc *doc, char *soapaction TSRMLS_ smart_str_append_const(&soap_headers, "\r\n"); smart_str_appendl(&soap_headers, buf, buf_size); + smart_str_0(&soap_headers); err = php_stream_write(stream, soap_headers.c, soap_headers.len); if(err != soap_headers.len) { |