diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 15:07:09 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 15:07:09 +0100 |
commit | 8a6d256fc1593e987d0e0b8098008388ceba5694 (patch) | |
tree | e29aa63f36bdc5a6bed0a66f4f8e0890e10171b6 /src | |
parent | ee87e5b036bc558844ab9796a2f94b78b7c40fc0 (diff) | |
download | profani-tty-8a6d256fc1593e987d0e0b8098008388ceba5694.tar.gz |
message: make _handle_chat safer
Diffstat (limited to 'src')
-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)) { |