1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

message: make _receipt_request_handler safer

This commit is contained in:
Michael Vetter 2021-03-25 15:38:48 +01:00
parent 099260a4e3
commit b2a02424ed

View File

@ -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;
}