From 625f614cb13536d805985a2008840452c6c86a26 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 4 Nov 2018 16:40:27 +0100 Subject: Fix #76348: WSDL_CACHE_MEMORY causes Segmentation fault MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.” --- ext/soap/php_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/soap/php_sdl.c') 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); } -- cgit v1.2.1