summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-12-09 15:29:15 +0000
committerDmitry Stogov <dmitry@php.net>2005-12-09 15:29:15 +0000
commiteef44c609bdc848c510d159e15561c9bd7ce42c0 (patch)
treefa13e1356ade356affbf8557aae01c980ef7517c /ext/soap/php_sdl.c
parent4ccdc865619fe744d55cc7789b25e8260a2de99d (diff)
downloadphp-git-eef44c609bdc848c510d159e15561c9bd7ce42c0.tar.gz
Fixed possible SIGSEGV (Rob Richards)
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c8
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);
+ }
}
}
}