diff options
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 02857f0446..9a75e433d7 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -316,7 +316,7 @@ char *sk_set(STACK *st, int i, char *value) void sk_sort(STACK *st) { - if (!st->sorted) + if (st && !st->sorted) { int (*comp_func)(const void *,const void *); |