fix: Check for necessary pointers in omemo_receive_message

Static analyzer hilighted this.

Ref: e39ffd981
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
Michael Vetter
2026-03-26 11:41:20 +01:00
parent 64b77ab493
commit 25d2cb0120

View File

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