diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index a88956f9..6924b509 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -877,6 +877,10 @@ _handle_muc_user(xmpp_stanza_t* const stanza) xmpp_stanza_t* xns_muc_user = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_MUC_USER); const char* room = xmpp_stanza_get_from(stanza); + if (!xns_muc_user) { + return; + } + if (!room) { log_warning("Message received with no from attribute, ignoring"); return; |