From f21a99eaf8fcad5456110580b5aed1264f25060b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 25 Mar 2021 11:38:22 +0100 Subject: message: fix possible segfault in _handle_muc_user --- src/xmpp/message.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xmpp') 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; -- cgit 1.4.1-2-gfad0 es'> Profanity fork with TTY improvementsdanisanti <danisanti@tilde.institute>
about summary refs log blame commit diff stats
path: root/themes/aqua
blob: 8c86da3a9326a830123a6bd6918c37af12959316 (plain) (tree)
1
2
3
4
5