diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-04-08 17:20:35 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-04-11 16:05:14 +0200 |
commit | f3b8cc407dc5ab5a5075095393bfffe5f1c09a33 (patch) | |
tree | aeb0d9601fb2629c07b1db19510e69af3e713827 /src/xmpp | |
parent | e878b6d266fba2ce8dfabedcbb83163d7ec75178 (diff) | |
download | profani-tty-f3b8cc407dc5ab5a5075095393bfffe5f1c09a33.tar.gz |
_handle_chat: return if no 'from'
Let's not crash :-)
Diffstat (limited to 'src/xmpp')
-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 0f5e644d..98ab40c8 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -1179,6 +1179,9 @@ _handle_chat(xmpp_stanza_t *const stanza) } const gchar *from = xmpp_stanza_get_from(stanza); + if (!from) { + return; + } Jid *jid = jid_create(from); // private message from chat room use full jid (room/nick) |