diff options
-rw-r--r-- | src/xmpp/message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 68f752c4..cb7056a1 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -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)) { |