]> granicus.if.org Git - php/commitdiff
fix #37807 (segmentation fault during SOAP schema import)
authorAntony Dovgal <tony2001@php.net>
Mon, 19 Jun 2006 11:43:36 +0000 (11:43 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 19 Jun 2006 11:43:36 +0000 (11:43 +0000)
ext/soap/php_schema.c

index c448cf5fb7f95658daf6dfd81e7eab7fa753f961..42f05c64ff957c625d6ace5cbbca1c714c77b0d2 100644 (file)
@@ -115,7 +115,7 @@ static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlA
                if (import) {
                        if (ns != NULL && (new_tns == NULL || strcmp(ns->children->content,new_tns->children->content) != 0)) {
                                xmlFreeDoc(doc);
-                               soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s', unexpected 'targetNamespace'='%s'", location, new_tns->children->content);
+                               soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content);
                        }
                        if (ns == NULL && new_tns != NULL) {
                                xmlFreeDoc(doc);