summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-09-28 11:36:43 +0300
committerdefanor <defanor@uberspace.net>2021-09-28 11:36:43 +0300
commitc094b0163ab18f9bd40d4b0e76ab3ca26372d9e4 (patch)
treea4c1c1d22662e16db843b64974723892681e2042 /src
parent54fdda5019b97d3d0473bbcae822d44f2bb1352c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rexmpp.c10
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;
+ }
}
}
}