mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 18:56: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);
|
const gchar* from = xmpp_stanza_get_from(stanza);
|
||||||
Jid* jid = jid_create(from);
|
if (from) {
|
||||||
_message_send_receipt(jid->fulljid, id);
|
Jid* jid = jid_create(from);
|
||||||
jid_destroy(jid);
|
if (jid) {
|
||||||
|
_message_send_receipt(jid->fulljid, id);
|
||||||
|
jid_destroy(jid);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user