From f3b8cc407dc5ab5a5075095393bfffe5f1c09a33 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 8 Apr 2020 17:20:35 +0200 Subject: _handle_chat: return if no 'from' Let's not crash :-) --- src/xmpp/message.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xmpp') 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) -- cgit 1.4.1-2-gfad0