fix(xmpp): guard NULL domain in autoping disco warning gate #138

Manually merged
jabber.developer2 merged 1 commits from fix/autoping-warning-null-domain into master 2026-06-23 12:31:56 +00:00

View File

@@ -2432,7 +2432,8 @@ _disco_info_response_id_handler_onconnect(xmpp_stanza_t* const stanza, void* con
}
// Prevent repetitions by avoiding checks of disco items (from connection_set_disco_items)
if (from && g_ascii_strcasecmp(from, connection_get_domain()) == 0) {
const char* domain = connection_get_domain();
if (from && domain && g_ascii_strcasecmp(from, domain) == 0) {
_disco_autoping_warning_message(features);
}
}