diff options
author | defanor <defanor@uberspace.net> | 2021-02-07 16:28:26 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-07 16:28:26 +0300 |
commit | adc336685e0167a9ba0919d48854b13137bb4055 (patch) | |
tree | 37894275828b22b7d8031bfac8fdba36d6a4fcfd | |
parent | 8dd0fd4acbcf489f4040da6db6d211a598ac7b2c (diff) |
Accept IQ replies without "from" attribute
-rw-r--r-- | src/rexmpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rexmpp.c b/src/rexmpp.c index f915f70..03e666e 100644 --- a/src/rexmpp.c +++ b/src/rexmpp.c @@ -1680,7 +1680,7 @@ rexmpp_err_t rexmpp_process_element (rexmpp_t *s, xmlNodePtr elem) { char *rep_from = xmlGetProp(elem, "from"); int id_matches = (strcmp(id, req_id) == 0); int jid_matches = 0; - if (req_to == NULL && rep_from == NULL) { + if (rep_from == NULL) { jid_matches = 1; } else if (req_to != NULL && rep_from != NULL) { jid_matches = (strcmp(req_to, rep_from) == 0); |