mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04: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);
|
const char* const stanza_from = xmpp_stanza_get_from(stanza);
|
||||||
|
if (!stanza_from) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
DataForm* form = form_create(result);
|
DataForm* form = form_create(result);
|
||||||
ProfConfWin* confwin = (ProfConfWin*)wins_new_config(stanza_from, form, message_muc_submit_voice_approve, NULL, NULL);
|
ProfConfWin* confwin = (ProfConfWin*)wins_new_config(stanza_from, form, message_muc_submit_voice_approve, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user