From: Matt Caswell Date: Mon, 10 Oct 2016 15:53:11 +0000 (+0100) Subject: Fix a double free in ca command line X-Git-Tag: OpenSSL_1_0_2k~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57aa2f154e3e0f427be59497f58092dd3ec0528a;p=openssl 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 (cherry picked from commit 229bd12487f8576fc088dc4f641950ac33c62033) --- diff --git a/apps/ca.c b/apps/ca.c index 20c4ebb043..4cea3cb7b1 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -2224,7 +2224,6 @@ static int certify_spkac(X509 **xret, char *infile, EVP_PKEY *pkey, sk = CONF_get_section(parms, "default"); if (sk_CONF_VALUE_num(sk) == 0) { BIO_printf(bio_err, "no name/value pairs found in %s\n", infile); - CONF_free(parms); goto err; }