diff options
author | Richard Levitte <levitte@openssl.org> | 2000-10-16 08:01:41 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-10-16 08:01:41 +0200 |
commit | 0ded1638ba3501f5a75d9ce86568482188207864 (patch) | |
tree | d328d49ee3a68faef67290935217bf33bd6e1f91 /crypto/ex_data.c | |
parent | Fix for typo in certificate directory lookup code. (diff) | |
download | openssl-0ded1638ba3501f5a75d9ce86568482188207864.tar.xz openssl-0ded1638ba3501f5a75d9ce86568482188207864.zip |
CRYPTO_get_ex_new_index would never return an error.
Diffstat (limited to 'crypto/ex_data.c')
-rw-r--r-- | crypto/ex_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ex_data.c b/crypto/ex_data.c index 1ee88da2a8..739e543d78 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -101,7 +101,7 @@ int CRYPTO_get_ex_new_index(int idx, STACK_OF(CRYPTO_EX_DATA_FUNCS) **skp, long ret=idx; err: MemCheck_on(); - return(idx); + return(ret); } int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val) |