summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-06-29 08:17:25 +1000
committerPauli <paul.dale@oracle.com>2020-07-05 13:20:09 +1000
commitc4d02214053d34990ce28598691f3dddef6f3868 (patch)
tree6d0d5f094bc580e7d3b42bc305968519ad047fdd /providers
parent22f7f42433fe9deb409703d76a0c4383371e6983 (diff)
coverity: CID 1464987: USE AFTER FREE
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12309)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/rands/drbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/rands/drbg.c b/providers/implementations/rands/drbg.c
index c2fa99b865..3394271835 100644
--- a/providers/implementations/rands/drbg.c
+++ b/providers/implementations/rands/drbg.c
@@ -503,7 +503,7 @@ int PROV_DRBG_instantiate(PROV_DRBG *drbg, unsigned int strength,
drbg->min_noncelen,
drbg->max_noncelen)) {
PROVerr(0, PROV_R_ERROR_RETRIEVING_NONCE);
- OPENSSL_free(nonce);
+ goto end;
}
#ifndef PROV_RAND_GET_RANDOM_NONCE
} else if (drbg->parent != NULL) {