Remove #error from include files.
[openssl.git] / crypto / stack / stack.c
index 9d2d4f4658c6ee3314f8ce6b41a6b01c7c3a09bc..d486f335b2ebec07c9bfef6e2a9890ddfc61a434 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/stack/stack.c */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -337,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 *);
 
         /*