Commit 402fb189 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>
(cherry picked from commit 0ca2e82a)
parent a3baa171
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -360,7 +360,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 *);

        /*