mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 10:26:22 +00:00
message: make _handle_error safer
This commit is contained in:
@@ -864,8 +864,10 @@ _handle_error(xmpp_stanza_t* const stanza)
|
||||
} else {
|
||||
if (type && (strcmp(type, "cancel") == 0)) {
|
||||
Jid* jidp = jid_create(jid);
|
||||
chat_session_remove(jidp->barejid);
|
||||
jid_destroy(jidp);
|
||||
if (jidp) {
|
||||
chat_session_remove(jidp->barejid);
|
||||
jid_destroy(jidp);
|
||||
}
|
||||
}
|
||||
ui_handle_recipient_error(jid, err_msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user