Skip to content

Commit 9238260

Browse files
committed
fix bad placement
1 parent 53d80c0 commit 9238260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/cmac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ int wc_InitCmac_ex(Cmac* cmac, const byte* key, word32 keySz,
114114
#endif
115115
XMEMSET(cmac, 0, sizeof(Cmac));
116116

117-
/* set invalid devId regardless of cryptoCb */
118-
cmac->devId = devId;
119117
#ifdef WOLF_CRYPTO_CB
118+
/* set invalid devId regardless of value */
119+
cmac->devId = devId;
120120
#ifndef WOLF_CRYPTO_CB_FIND
121121
if (devId != INVALID_DEVID)
122122
#endif

0 commit comments

Comments
 (0)