commit | 90fdc117dd583b9df6119c2a15aee123581a9c9e | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Wed Sep 22 17:15:48 2021 +0100 |
committer | Paul Elliott <paul.elliott@arm.com> | Wed Sep 22 22:34:17 2021 +0100 |
tree | 02996a5d9b8a1baabf957016d3bba574ac6c4c5d | |
parent | 70618b22a9b3819c6bb6db86975fd7a0436004f9 [diff] [blame] |
Make NULL tag check more explicit Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 415dab8..a954d86 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -3760,7 +3760,7 @@ * 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 );