From a561444561dec2313a99c3a6d6b560d0828f05c3 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Wed, 14 Jul 2021 14:54:11 +0100 Subject: [PATCH] Add missing space 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 a5027f386..e14508353 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3757,7 +3757,7 @@ static psa_status_t psa_aead_final_checks( psa_aead_operation_t *operation, if( operation->id == 0 || !operation->nonce_set ) return( PSA_ERROR_BAD_STATE ); - if( operation->lengths_set && (operation->ad_remaining != 0 || + if( operation->lengths_set && ( operation->ad_remaining != 0 || operation->body_remaining != 0 ) ) return( PSA_ERROR_INVALID_ARGUMENT );