Skip to content

Commit 5e1db68

Browse files
committed
Update logic to avoid clang-tidy warning.
1 parent 35442d2 commit 5e1db68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfcrypt/src/cmac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz)
318318
else {
319319
/* ensure we will have a valid remainder value */
320320
if (cmac->bufferSz > AES_BLOCK_SIZE) {
321-
return BAD_STATE_E;
321+
ret = BAD_STATE_E;
322+
break;
322323
}
323324
remainder = AES_BLOCK_SIZE - cmac->bufferSz;
324325

0 commit comments

Comments
 (0)