mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 20:26:21 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user