Skip to content

Commit c441961

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix potential NULL deref
2 parents aae88ac + dd856d5 commit c441961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/soap/php_schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdl
18771877
} else {
18781878
xmlNsPtr nsPtr = attr_find_ns(attr);
18791879

1880-
if (strncmp((char*)nsPtr->href, SCHEMA_NAMESPACE, sizeof(SCHEMA_NAMESPACE))) {
1880+
if (nsPtr && strncmp((char*)nsPtr->href, SCHEMA_NAMESPACE, sizeof(SCHEMA_NAMESPACE))) {
18811881
smart_str key2 = {0};
18821882
sdlExtraAttributePtr ext;
18831883
xmlNsPtr nsptr;

0 commit comments

Comments
 (0)