diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rexmpp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rexmpp.c b/src/rexmpp.c index c2e472f..9c099f1 100644 --- a/src/rexmpp.c +++ b/src/rexmpp.c @@ -852,8 +852,14 @@ int rexmpp_xml_match (xmlNodePtr node, return 0; } } else { - if (strcmp(namespace, node->nsDef->href) != 0) { - return 0; + if (node->nsDef) { + if (strcmp(namespace, node->nsDef->href) != 0) { + return 0; + } + } else { + if (namespace != NULL) { + return 0; + } } } } |