projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error handling in RAND_DRBG_uninstantiate
[openssl.git]
/
crypto
/
rand
/
drbg_lib.c
diff --git
a/crypto/rand/drbg_lib.c
b/crypto/rand/drbg_lib.c
index cd298a7e1670dbb94786acc41e12a99327bedbd7..2cfa4f5b8c8b626a4134284a55c60d65e225faae 100644
(file)
--- a/
crypto/rand/drbg_lib.c
+++ b/
crypto/rand/drbg_lib.c
@@
-437,6
+437,7
@@
int RAND_DRBG_uninstantiate(RAND_DRBG *drbg)
{
int index = -1, type, flags;
if (drbg->meth == NULL) {
+ drbg->state = DRBG_ERROR;
RANDerr(RAND_F_RAND_DRBG_UNINSTANTIATE,
RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED);
return 0;