1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

message: make _handle_form safer

This commit is contained in:
Michael Vetter 2021-03-25 15:27:59 +01:00
parent b1bd1ecca8
commit 2601fc5571

View File

@ -276,6 +276,9 @@ _handle_form(xmpp_stanza_t* const stanza)
}
const char* const stanza_from = xmpp_stanza_get_from(stanza);
if (!stanza_from) {
return FALSE;
}
DataForm* form = form_create(result);
ProfConfWin* confwin = (ProfConfWin*)wins_new_config(stanza_from, form, message_muc_submit_voice_approve, NULL, NULL);