From 3fa0fb78f20d33e4938221284ffa5ceb1f6b7277 Mon Sep 17 00:00:00 2001 From: night1rider Date: Thu, 9 Apr 2026 15:05:39 -0600 Subject: [PATCH] Add (void)ret after CRYPTOCB_UNAVAILABLE fall-through reset in _InitCmac_common to acknowledge intentional store. --- 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 269c324792..2835c556cd 100644 --- a/wolfcrypt/src/cmac.c +++ b/wolfcrypt/src/cmac.c @@ -162,8 +162,9 @@ static int _InitCmac_common(Cmac* cmac, const byte* key, word32 keySz, if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) { return ret; } - /* fall-through when unavailable */ + /* fall-through when unavailable, reset ret for software path */ ret = 0; + (void)ret; } #else (void)devId;