提交 f49baeff 编写于 作者: K Kurt Roeckx

X509_VERIFY_PARAM_free: Check param for NULL

Reviewed-by: NViktor Dukhovni <openssl-users@dukhovni.org>
上级 62adbcee
......@@ -189,6 +189,8 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void)
void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param)
{
if (param == NULL)
return;
x509_verify_param_zero(param);
OPENSSL_free(param->id);
OPENSSL_free(param);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册