提交 f418f8c1 编写于 作者: B Bodo Möller

In clear_free, clear the complete structure just in case

the method misses something.
上级 5277d7cb
......@@ -120,6 +120,7 @@ void EC_GROUP_clear_free(EC_GROUP *group)
group->meth->group_clear_finish(group);
else if (group->meth != NULL && group->meth->group_finish != 0)
group->meth->group_finish(group);
memset(point, 0, sizeof *group);
OPENSSL_free(group);
}
......@@ -206,6 +207,7 @@ void EC_POINT_clear_free(EC_POINT *point)
point->meth->point_clear_finish(point);
else if (point->meth != NULL && point->meth->point_finish != 0)
point->meth->point_finish(point);
memset(point, 0, sizeof *point);
OPENSSL_free(point);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册