diff options
author | Matteo Beccati <mbeccati@php.net> | 2015-11-07 10:35:45 +0100 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2015-11-07 11:00:33 +0100 |
commit | fd61666d96277779b1b85f59a0651cb42eed3420 (patch) | |
tree | 2643c6eabaadf28619b62b7ee060ad2eac7321fd /ext/soap/php_sdl.c | |
parent | 089ca134fb79ba57cdc89a3a8d9800577bce5ddf (diff) | |
download | php-git-fd61666d96277779b1b85f59a0651cb42eed3420.tar.gz |
Fix bug #70875 Segmentation fault if wsdl has no targetNamespace attribute
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 355762123c..4ba1119d35 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -111,7 +111,7 @@ encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type) { encodePtr enc = NULL; char *nscat; - int ns_len = strlen(ns); + int ns_len = ns ? strlen(ns) : 0; int type_len = strlen(type); int len = ns_len + type_len + 1; |