mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
fixed crashes when server doesn't support registration
This commit is contained in:
parent
87d2c95c87
commit
feaa770444
@ -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 */
|
/* check whether server supports in-band registration */
|
||||||
child = xmpp_stanza_get_child_by_name(stanza, "register");
|
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.");
|
log_debug("Server does not support in-band registration.");
|
||||||
cons_show_error("Server does not support in-band registration, aborting.");
|
cons_show_error("Server does not support in-band registration, aborting.");
|
||||||
xmpp_disconnect(xmpp_conn);
|
xmpp_disconnect(xmpp_conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user