From 75dca32a6cd0af99bfd9c27322f41c6e6ddeb3ce Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 3 Apr 2004 11:54:59 +0000 Subject: [PATCH] Recent changes from 0.9.7-stable. --- crypto/stack/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 2496f28a8c..ff6d14a86c 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -306,7 +306,7 @@ int sk_num(const STACK *st) char *sk_value(const STACK *st, int i) { - if(st == NULL) return NULL; + if(!st || (i < 0) || (i >= st->num)) return NULL; return st->data[i]; } -- 2.25.1