Commit f96ff4e9 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Fixed a crash in error handing of rand_drbg_new

parent d288d7fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);