mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
message: make _receipt_request_handler safer
This commit is contained in:
parent
099260a4e3
commit
b2a02424ed
@ -1184,7 +1184,7 @@ _receipt_request_handler(xmpp_stanza_t* const stanza)
|
||||
}
|
||||
|
||||
const char* receipts_name = xmpp_stanza_get_name(receipts);
|
||||
if (g_strcmp0(receipts_name, "request") != 0) {
|
||||
if ((receipts_name == NULL) || (g_strcmp0(receipts_name, "request") != 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user