Fix race condition when CRL checking is enabled.
[openssl.git] / crypto / stack / stack.c
index 9cc0a8296235dd1bdedab8f63a89d02ca1b3d3f6..d2b2a6d2933273cbf5fd68957a55deadf4e796bc 100644 (file)
@@ -332,3 +332,10 @@ void sk_sort(STACK *st)
                st->sorted=1;
                }
        }
+
+int sk_is_sorted(const STACK *st)
+       {
+       if (st)
+               return 1;
+       return st->sorted;
+       }