Commit 57aa2f15 authored by Matt Caswell's avatar Matt Caswell
Browse files

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: default avatarKurt Roeckx <kurt@openssl.org>
(cherry picked from commit 229bd124)
parent fa4c3745
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
    }