Change an function macro for ERR match the function it's used in.
authorRichard Levitte <levitte@openssl.org>
Sun, 13 Mar 2016 13:54:51 +0000 (14:54 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 13 Mar 2016 13:54:51 +0000 (14:54 +0100)
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/ex_data.c

index 4af0a9d5b3a9f262b5e2807067ce659c2f804a53..3088889ffe3c97b600f0ea1e876704f2931f6769 100644 (file)
@@ -251,7 +251,7 @@ int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
          * "app_data" routines use ex_data index zero.  See RT 3710. */
         if (ip->meth == NULL
             || !sk_EX_CALLBACK_push(ip->meth, NULL)) {
-            CRYPTOerr(CRYPTO_F_GET_AND_LOCK, ERR_R_MALLOC_FAILURE);
+            CRYPTOerr(CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX, ERR_R_MALLOC_FAILURE);
             goto err;
         }
     }