about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorswirl <roachh@protonmail.com>2021-10-10 15:43:14 -0400
committerswirl <roachh@protonmail.com>2021-10-10 15:43:14 -0400
commitfeaa770444a1063f9a272e90d84b711b09669548 (patch)
treed44c696732a811d39631bf826898cdfe44ee94ee
parent87d2c95c870d697822c7d25f4c734e259a893d85 (diff)
downloadprofani-tty-feaa770444a1063f9a272e90d84b711b09669548.tar.gz
fixed crashes when server doesn't support registration
-rw-r--r--src/xmpp/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 038fbb51..e478df1a 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -392,7 +392,7 @@ _register_handle_features(xmpp_conn_t *xmpp_conn, xmpp_stanza_t *stanza, void *u
 
     /* check whether server supports in-band registration */
     child = xmpp_stanza_get_child_by_name(stanza, "register");
-    if (child && strcmp(xmpp_stanza_get_ns(child), XMPP_NS_REGISTER) == 0) {
+    if (!child) {
         log_debug("Server does not support in-band registration.");
         cons_show_error("Server does not support in-band registration, aborting.");
         xmpp_disconnect(xmpp_conn);