summaryrefslogtreecommitdiffstats
path: root/crypto/ex_data.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-10-16 08:01:41 +0200
committerRichard Levitte <levitte@openssl.org>2000-10-16 08:01:41 +0200
commit0ded1638ba3501f5a75d9ce86568482188207864 (patch)
treed328d49ee3a68faef67290935217bf33bd6e1f91 /crypto/ex_data.c
parentFix for typo in certificate directory lookup code. (diff)
downloadopenssl-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.c2
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)