1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

_handle_chat: return if no 'from'

Let's not crash :-)
This commit is contained in:
Michael Vetter 2020-04-08 17:20:35 +02:00
parent e878b6d266
commit f3b8cc407d

View File

@ -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)