upstream: fix: Check for necessary pointers in omemo_receive_message (25d2cb012)

This commit is contained in:
2026-03-31 19:57:34 +03:00
parent 19c87e74f2
commit 66e84a2735

View File

@@ -352,6 +352,10 @@ out:
char*
omemo_receive_message(xmpp_stanza_t* const stanza, gboolean* trusted)
{
if (!stanza || !trusted || !error) {
return NULL;
}
char* plaintext = NULL;
const char* type = xmpp_stanza_get_type(stanza);
const char* from = xmpp_stanza_get_from(stanza);