Skip to content

Commit 874633d

Browse files
authored
Merge pull request #9270 from effbiae/sm3-free-x2
double free -- should be o_hash
2 parents 99c983d + a53f0cd commit 874633d

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)