diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-11-02 11:46:38 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-11-05 22:46:21 +0100 |
commit | c40c1ef4f3c3a6a4d7878bbf8b13742a5bffd963 (patch) | |
tree | 9534825bc8d8f11b8c25e5f6d75a619527dc2d01 /crypto/rand | |
parent | fd59e425a865f306f3745f576f8b7b7a40dbbfcf (diff) |
Fix error handling in RAND_DRBG_uninstantiate
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7519)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/drbg_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rand/drbg_lib.c b/crypto/rand/drbg_lib.c index 1471681cf4..73fd942914 100644 --- a/crypto/rand/drbg_lib.c +++ b/crypto/rand/drbg_lib.c @@ -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; |