projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd59e42
)
Fix error handling in RAND_DRBG_uninstantiate
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Fri, 2 Nov 2018 10:46:38 +0000
(11:46 +0100)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 5 Nov 2018 21:46:21 +0000
(22:46 +0100)
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)
crypto/rand/drbg_lib.c
patch
|
blob
|
history
diff --git
a/crypto/rand/drbg_lib.c
b/crypto/rand/drbg_lib.c
index 1471681cf47c48a252c205904285566a87c6d825..73fd942914907d01f800b03d981a86910519d640 100644
(file)
--- 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;