Commit 0ca2e82a authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

if no comparison function set make sk_sort no op



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 8a07e27c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 *);

        /*