projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b8e92
)
Recent changes from 0.9.7-stable.
author
Richard Levitte
<levitte@openssl.org>
Wed, 21 Apr 2004 16:03:00 +0000
(16:03 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 21 Apr 2004 16:03:00 +0000
(16:03 +0000)
crypto/stack/stack.c
patch
|
blob
|
history
diff --git
a/crypto/stack/stack.c
b/crypto/stack/stack.c
index ff6d14a86ce5e2a997d02145b0d6ac4046c08235..a6ecbe4c686e3cb8c4e116a4c604cd3a726251ca 100644
(file)
--- a/
crypto/stack/stack.c
+++ b/
crypto/stack/stack.c
@@
-191,8
+191,7
@@
char *sk_delete(STACK *st, int loc)
char *ret;
int i,j;
- if ((st == NULL) || (st->num == 0) || (loc < 0)
- || (loc >= st->num)) return(NULL);
+ if(!st || (loc < 0) || (loc >= st->num)) return NULL;
ret=st->data[loc];
if (loc != st->num-1)
@@
-312,7
+311,7
@@
char *sk_value(const STACK *st, int i)
char *sk_set(STACK *st, int i, char *value)
{
- if(
st == NULL
) return NULL;
+ if(
!st || (i < 0) || (i >= st->num)
) return NULL;
return (st->data[i] = value);
}