From 0ded1638ba3501f5a75d9ce86568482188207864 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 16 Oct 2000 06:01:41 +0000 Subject: [PATCH] CRYPTO_get_ex_new_index would never return an error. --- crypto/ex_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1