mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 05:04:41 +02:00
Update logic to avoid clang-tidy warning.
This commit is contained in:
@@ -318,7 +318,8 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz)
|
|||||||
else {
|
else {
|
||||||
/* ensure we will have a valid remainder value */
|
/* ensure we will have a valid remainder value */
|
||||||
if (cmac->bufferSz > AES_BLOCK_SIZE) {
|
if (cmac->bufferSz > AES_BLOCK_SIZE) {
|
||||||
return BAD_STATE_E;
|
ret = BAD_STATE_E;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
remainder = AES_BLOCK_SIZE - cmac->bufferSz;
|
remainder = AES_BLOCK_SIZE - cmac->bufferSz;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user