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

Fix error handling in RAND_DRBG_uninstantiate

parent fd59e425
Loading
Loading
Loading
Loading
+1
Changes for crypto/rand/drbg_lib.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -374,6 +374,7 @@ int RAND_DRBG_instantiate(RAND_DRBG *drbg,
int RAND_DRBG_uninstantiate(RAND_DRBG *drbg)
{
    if (drbg->meth == NULL) {
        drbg->state = DRBG_ERROR;
        RANDerr(RAND_F_RAND_DRBG_UNINSTANTIATE,
                RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED);
        return 0;