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:
17209be
)
Fix error handling in rand_drbg_new
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Tue, 30 Oct 2018 19:57:53 +0000
(20:57 +0100)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 5 Nov 2018 21:35:10 +0000
(22:35 +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/7517)
crypto/rand/drbg_lib.c
patch
|
blob
|
history
diff --git
a/crypto/rand/drbg_lib.c
b/crypto/rand/drbg_lib.c
index f518ce51388b09c53798363c67891780f95d3b86..cd298a7e1670dbb94786acc41e12a99327bedbd7 100644
(file)
--- a/
crypto/rand/drbg_lib.c
+++ b/
crypto/rand/drbg_lib.c
@@
-295,10
+295,7
@@
static RAND_DRBG *rand_drbg_new(int secure,
return drbg;
err:
- if (drbg->secure)
- OPENSSL_secure_free(drbg);
- else
- OPENSSL_free(drbg);
+ RAND_DRBG_free(drbg);
return NULL;
}