Skip to content

Commit a53f0cd

Browse files
committed
double free -- should be o_hash
1 parent 99c983d commit a53f0cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ void wc_HmacFree(Hmac* hmac)
14151415
wc_Sm3Free(&hmac->hash.sm3);
14161416
#ifdef WOLFSSL_HMAC_COPY_HASH
14171417
wc_Sm3Free(&hmac->i_hash.sm3);
1418-
wc_Sm3Free(&hmac->i_hash.sm3);
1418+
wc_Sm3Free(&hmac->o_hash.sm3);
14191419
#endif
14201420
break;
14211421
#endif

0 commit comments

Comments
 (0)