mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
if no comparison function set make sk_sort no op
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
8a07e27cd8
commit
0ca2e82ab1
@ -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 *);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user