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:
parent
b1bd1ecca8
commit
2601fc5571
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user