projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f127d77
)
SOAP: Avoid indexing into null pointer
author
Nikita Popov
<nikita.ppv@gmail.com>
Thu, 20 Jun 2019 13:03:44 +0000
(15:03 +0200)
committer
Nikita Popov
<nikita.ppv@gmail.com>
Thu, 20 Jun 2019 14:22:34 +0000
(16:22 +0200)
ext/soap/soap.c
patch
|
blob
|
history
diff --git
a/ext/soap/soap.c
b/ext/soap/soap.c
index 663f260920d7d1e5da83ed2b54fd6578dcad1b4e..a74aaf7d15207e57a1ffa006caab58e9e924e314 100644
(file)
--- 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 &&