diff --git a/crypto/rand/drbg_lib.c b/crypto/rand/drbg_lib.c index 360e77565c0e4b0ada4b434e3b0cc99aa7debff1..02ad071ad4cc8eeeafb2ff31807d57c3d1ede4cf 100644 --- a/crypto/rand/drbg_lib.c +++ b/crypto/rand/drbg_lib.c @@ -218,7 +218,7 @@ static RAND_DRBG *rand_drbg_new(int secure, if (drbg == NULL) { RANDerr(RAND_F_RAND_DRBG_NEW, ERR_R_MALLOC_FAILURE); - goto err; + return NULL; } drbg->secure = secure && CRYPTO_secure_allocated(drbg);