projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a07e27
)
if no comparison function set make sk_sort no op
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 6 Feb 2016 17:07:58 +0000
(17:07 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sat, 6 Feb 2016 18:49:10 +0000
(18:49 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/stack/stack.c
patch
|
blob
|
history
diff --git
a/crypto/stack/stack.c
b/crypto/stack/stack.c
index 286f290c9760b82917c563d3c656811cd5cc10b6..d486f335b2ebec07c9bfef6e2a9890ddfc61a434 100644
(file)
--- 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 *);
/*