From 5e1db686e1a6c4b00acae41ff63bdd799804ced9 Mon Sep 17 00:00:00 2001 From: Bill Phipps Date: Tue, 24 Sep 2024 13:14:00 -0400 Subject: [PATCH] Update logic to avoid clang-tidy warning. --- wolfcrypt/src/cmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/cmac.c b/wolfcrypt/src/cmac.c index 502ea2a742..d06e484e1a 100644 --- a/wolfcrypt/src/cmac.c +++ b/wolfcrypt/src/cmac.c @@ -318,7 +318,8 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz) else { /* ensure we will have a valid remainder value */ if (cmac->bufferSz > AES_BLOCK_SIZE) { - return BAD_STATE_E; + ret = BAD_STATE_E; + break; } remainder = AES_BLOCK_SIZE - cmac->bufferSz;