diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-20 15:03:44 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-20 16:22:34 +0200 |
commit | 27d3373496ec5b2e45bd7403ccde1ab891efe00b (patch) | |
tree | f9aaeb8276abad64b904063472f1778e41d6bd84 | |
parent | f127d77eefad4b641b2befcbab13f16a624e7424 (diff) | |
download | php-git-27d3373496ec5b2e45bd7403ccde1ab891efe00b.tar.gz |
SOAP: Avoid indexing into null pointer
-rw-r--r-- | ext/soap/soap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 663f260920..a74aaf7d15 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -4070,7 +4070,8 @@ static xmlDocPtr serialize_response_call(sdlFunctionPtr function, char *function int hdr_use = SOAP_LITERAL; zval *hdr_ret = &h->retval; char *hdr_ns = h->hdr?h->hdr->ns:NULL; - char *hdr_name = Z_STRVAL(h->function_name); + char *hdr_name = Z_TYPE(h->function_name) == IS_STRING + ? Z_STRVAL(h->function_name) : NULL; HashTable *ht = NULL; if (Z_TYPE(h->retval) == IS_OBJECT && |