Skip to content

Commit 0b5ecd8

Browse files
committed
fix rsa free callback call
1 parent 36d3bb3 commit 0b5ecd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ int wc_FreeRsaKey(RsaKey* key)
563563
#endif
564564
{
565565
ret = wc_CryptoCb_Free(key->devId, WC_ALGO_TYPE_PK,
566-
WC_PK_TYPE_RSA, key);
566+
WC_PK_TYPE_RSA, 0, key);
567567
/* If callback wants standard free, it returns CRYPTOCB_UNAVAILABLE.
568568
* Otherwise assume the callback handled cleanup. */
569569
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))

0 commit comments

Comments
 (0)