summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/stack
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/stack')
-rw-r--r--lib/libcrypto/stack/stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/stack/stack.c b/lib/libcrypto/stack/stack.c
index d941f9e6fb8..b76a0d7271c 100644
--- a/lib/libcrypto/stack/stack.c
+++ b/lib/libcrypto/stack/stack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack.c,v 1.19 2015/02/07 13:19:15 doug Exp $ */
+/* $OpenBSD: stack.c,v 1.20 2018/04/01 00:36:28 schwarze Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -312,6 +312,7 @@ sk_set(_STACK *st, int i, void *value)
{
if (!st || (i < 0) || (i >= st->num))
return NULL;
+ st->sorted = 0;
return (st->data[i] = value);
}