提交 cd1226bc 编写于 作者: R Richard Levitte

Memory leak fix: local blinding structure not freed in rsa_eay_private_decrypt()

上级 7a04fdd8
...@@ -504,6 +504,8 @@ err: ...@@ -504,6 +504,8 @@ err:
if (ctx != NULL) BN_CTX_free(ctx); if (ctx != NULL) BN_CTX_free(ctx);
BN_clear_free(&f); BN_clear_free(&f);
BN_clear_free(&ret); BN_clear_free(&ret);
if (local_blinding)
BN_BLINDING_free(blinding);
if (buf != NULL) if (buf != NULL)
{ {
OPENSSL_cleanse(buf,num); OPENSSL_cleanse(buf,num);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册