PR: 2527
authorDr. Stephen Henson <steve@openssl.org>
Wed, 25 May 2011 15:05:39 +0000 (15:05 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 25 May 2011 15:05:39 +0000 (15:05 +0000)
Submitted by: Marcus Meissner <meissner@suse.de>
Reviewed by: steve

Set cnf to NULL to avoid possible double free.

apps/asn1pars.c

index b5d65e7..0d66070 100644 (file)
@@ -408,6 +408,7 @@ static int do_generate(BIO *bio, char *genstr, char *genconf, BUF_MEM *buf)
 
        atyp = ASN1_generate_nconf(genstr, cnf);
        NCONF_free(cnf);
+       cnf = NULL;
 
        if (!atyp)
                return -1;