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*
|
char*
|
||||||
omemo_receive_message(xmpp_stanza_t* const stanza, gboolean* trusted, omemo_error_t* error)
|
omemo_receive_message(xmpp_stanza_t* const stanza, gboolean* trusted, omemo_error_t* error)
|
||||||
{
|
{
|
||||||
|
if (!stanza || !trusted || !error) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
char* plaintext = NULL;
|
char* plaintext = NULL;
|
||||||
const char* type = xmpp_stanza_get_type(stanza);
|
const char* type = xmpp_stanza_get_type(stanza);
|
||||||
GList* keys = NULL;
|
GList* keys = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user