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:
Jouni Malinen 2022-05-26 14:01:28 +03:00
parent 4f4479ef9e
commit 6d19dccf94

View file

@ -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) {