From c094b0163ab18f9bd40d4b0e76ab3ca26372d9e4 Mon Sep 17 00:00:00 2001 From: defanor Date: Tue, 28 Sep 2021 11:36:43 +0300 Subject: Add request identifiers into the xmpp.el's XML interface Now the requests don't have to be queued, though xml_interface.c still expects responses from xmpp.el in reverse order. --- src/rexmpp.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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; + } } } } -- cgit v1.2.3