mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 03:46:21 +00:00
message: make _handle_chat safer
This commit is contained in:
@@ -1290,6 +1290,9 @@ _handle_chat(xmpp_stanza_t* const stanza, gboolean is_mam, gboolean is_carbon, c
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Jid* jid = jid_create(from);
|
Jid* jid = jid_create(from);
|
||||||
|
if (!jid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// private message from chat room use full jid (room/nick)
|
// private message from chat room use full jid (room/nick)
|
||||||
if (muc_active(jid->barejid)) {
|
if (muc_active(jid->barejid)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user