mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-14 02:19:39 +00:00
Fix a double free in ca command line
Providing a spkac file with no default section causes a double free. Thanks to Brian Carpenter for reporting this issue. Reviewed-by: Kurt Roeckx <kurt@openssl.org> (cherry picked from commit 229bd12487f8576fc088dc4f641950ac33c62033)
This commit is contained in:
parent
dafa1c85b9
commit
3bceb47a27
@ -1917,7 +1917,6 @@ static int certify_spkac(X509 **xret, const char *infile, EVP_PKEY *pkey,
|
|||||||
sk = CONF_get_section(parms, "default");
|
sk = CONF_get_section(parms, "default");
|
||||||
if (sk_CONF_VALUE_num(sk) == 0) {
|
if (sk_CONF_VALUE_num(sk) == 0) {
|
||||||
BIO_printf(bio_err, "no name/value pairs found in %s\n", infile);
|
BIO_printf(bio_err, "no name/value pairs found in %s\n", infile);
|
||||||
CONF_free(parms);
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user