From 90fdc117dd583b9df6119c2a15aee123581a9c9e Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Wed, 22 Sep 2021 17:15:48 +0100 Subject: [PATCH] Make NULL tag check more explicit Signed-off-by: Paul Elliott --- library/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 415dab8b2..a954d86c6 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3760,7 +3760,7 @@ exit: * Even if the operation succeeds, make sure we clear the rest of the * buffer to prevent potential leakage of anything previously placed in * the same buffer.*/ - if( tag ) + if( tag != NULL ) { if( status != PSA_SUCCESS ) memset( tag, '!', tag_size );