mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 14:06:21 +00:00
message: fix potential segfault in _receipt_request_handler
This commit is contained in:
@@ -1176,9 +1176,13 @@ _receipt_request_handler(xmpp_stanza_t* const stanza)
|
||||
}
|
||||
|
||||
const gchar* from = xmpp_stanza_get_from(stanza);
|
||||
Jid* jid = jid_create(from);
|
||||
_message_send_receipt(jid->fulljid, id);
|
||||
jid_destroy(jid);
|
||||
if (from) {
|
||||
Jid* jid = jid_create(from);
|
||||
if (jid) {
|
||||
_message_send_receipt(jid->fulljid, id);
|
||||
jid_destroy(jid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user