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

Set cnf to NULL to avoid possible double free.

apps/asn1pars.c

index bde61d02d12c72cd76dcc1ee237109d361eb581b..305cdfc6af3069a95928539ac5f686078fbd21f8 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;