message: make _handle_chat safer

This commit is contained in:
Michael Vetter
2021-03-25 15:07:09 +01:00
parent ee87e5b036
commit 8a6d256fc1

View File

@@ -1290,6 +1290,9 @@ _handle_chat(xmpp_stanza_t* const stanza, gboolean is_mam, gboolean is_carbon, c
return;
}
Jid* jid = jid_create(from);
if (!jid) {
return;
}
// private message from chat room use full jid (room/nick)
if (muc_active(jid->barejid)) {