diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-12-09 15:29:15 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-12-09 15:29:15 +0000 |
commit | eef44c609bdc848c510d159e15561c9bd7ce42c0 (patch) | |
tree | fa13e1356ade356affbf8557aae01c980ef7517c /ext/soap/php_sdl.c | |
parent | 4ccdc865619fe744d55cc7789b25e8260a2de99d (diff) | |
download | php-git-eef44c609bdc848c510d159e15561c9bd7ce42c0.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); + } } } } |