mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
message: make _handle_muc_private_message safer
This commit is contained in:
parent
d2dc440535
commit
ee87e5b036
@ -1193,7 +1193,14 @@ _handle_muc_private_message(xmpp_stanza_t* const stanza)
|
||||
message->type = PROF_MSG_TYPE_MUCPM;
|
||||
|
||||
const gchar* from = xmpp_stanza_get_from(stanza);
|
||||
if (!from) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
message->from_jid = jid_create(from);
|
||||
if (!message->from_jid) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
// message stanza id
|
||||
const char* id = xmpp_stanza_get_id(stanza);
|
||||
|
Loading…
Reference in New Issue
Block a user