diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-02-06 17:07:58 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-06 18:49:10 +0000 |
commit | 0ca2e82ab1575f9c4eed259c4d66ca9372a45bf5 (patch) | |
tree | da705b811508ca259dd29fe60cf31f6dc9cf69f6 /crypto | |
parent | 8a07e27cd83adc4779a92e447b44a5a65c51c34d (diff) |
if no comparison function set make sk_sort no op
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/stack/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 286f290c97..d486f335b2 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -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 *); /* |