about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 15:07:09 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 15:07:09 +0100
commit8a6d256fc1593e987d0e0b8098008388ceba5694 (patch)
treee29aa63f36bdc5a6bed0a66f4f8e0890e10171b6 /src/xmpp
parentee87e5b036bc558844ab9796a2f94b78b7c40fc0 (diff)
downloadprofani-tty-8a6d256fc1593e987d0e0b8098008388ceba5694.tar.gz
message: make _handle_chat safer
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c3
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)) {