CRYPTO_get_ex_new_index would never return an error.
authorRichard Levitte <levitte@openssl.org>
Mon, 16 Oct 2000 06:01:41 +0000 (06:01 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 16 Oct 2000 06:01:41 +0000 (06:01 +0000)
crypto/ex_data.c

index 1ee88da2a83b5d415187ab735c0f8c71ad544a64..739e543d782c57b6c90d2614c60cb16833fb4215 100644 (file)
@@ -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)