mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
_handle_chat: return if no 'from'
Let's not crash :-)
This commit is contained in:
parent
e878b6d266
commit
f3b8cc407d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user