diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-04 16:40:27 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-04 16:40:27 +0100 |
commit | 625f614cb13536d805985a2008840452c6c86a26 (patch) | |
tree | fd723311f3abf60c8eb8a4a6d47dc04f27565ea4 /ext/soap/php_sdl.c | |
parent | e58388ea6d0b0246f61a9267930c1eba9c0f7f6b (diff) | |
download | php-git-625f614cb13536d805985a2008840452c6c86a26.tar.gz |
Fix #76348: WSDL_CACHE_MEMORY causes Segmentation fault
“Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end.”
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 695867d7e2..2485ef2fd8 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -2449,7 +2449,7 @@ static HashTable* make_persistent_sdl_function_headers(HashTable *headers, HashT pheader->ns = strdup(pheader->ns); } - if (pheader->encode->details.sdl_type) { + if (pheader->encode && pheader->encode->details.sdl_type) { if ((penc = zend_hash_str_find_ptr(ptr_map, (char*)&pheader->encode, sizeof(encodePtr))) == NULL) { assert(0); } |