diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-12-09 15:28:57 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-12-09 15:28:57 +0000 |
| commit | c548f7d610d4d006ef3636c12b84a004e18f8439 (patch) | |
| tree | 427b2208933b77c92102040df56f2ef124749931 /ext/soap/php_sdl.c | |
| parent | 7810872573874ce96c6617a7c0655f89e1fa2bfe (diff) | |
| download | php-git-c548f7d610d4d006ef3636c12b84a004e18f8439.tar.gz | |
Fixed possible SIGSEGV (Rob Richards)
Diffstat (limited to 'ext/soap/php_sdl.c')
| -rw-r--r-- | ext/soap/php_sdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 34d34e199e..bf0853ea7a 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -410,10 +410,10 @@ static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xml if (!h->ns && h->element->namens) { h->ns = estrdup(h->element->namens); } - } - if (h->element->name) { - efree(h->name); - h->name = estrdup(h->element->name); + if (h->element->name) { + efree(h->name); + h->name = estrdup(h->element->name); + } } } } |
