提交 0ca2e82a 编写于 作者: D Dr. Stephen Henson

if no comparison function set make sk_sort no op

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 8a07e27c
......@@ -336,7 +336,7 @@ void *sk_set(_STACK *st, int i, void *value)
void sk_sort(_STACK *st)
{
if (st && !st->sorted) {
if (st && !st->sorted && st->comp != NULL) {
int (*comp_func) (const void *, const void *);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册