OpenSSL: Free OSSL_DECODER_CTX in tls_global_dh()
The conversion to the new OpenSSL 3.0 API had forgotten to free the
context structure.
Fixes: bcd299b326
("OpenSSL: Convert DH/DSA parameter loading to new API")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4f4479ef9e
commit
6d19dccf94
1 changed files with 2 additions and 0 deletions
|
@ -4151,8 +4151,10 @@ static int tls_global_dh(struct tls_data *data, const char *dh_file)
|
||||||
"TLS: Failed to decode domain parameters from '%s': %s",
|
"TLS: Failed to decode domain parameters from '%s': %s",
|
||||||
dh_file, ERR_error_string(ERR_get_error(), NULL));
|
dh_file, ERR_error_string(ERR_get_error(), NULL));
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
|
OSSL_DECODER_CTX_free(ctx);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
OSSL_DECODER_CTX_free(ctx);
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
|
|
||||||
if (!tmpkey) {
|
if (!tmpkey) {
|
||||||
|
|
Loading…
Reference in a new issue