PR: 2527
authorDr. Stephen Henson <steve@openssl.org>
Wed, 25 May 2011 15:05:56 +0000 (15:05 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 25 May 2011 15:05:56 +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 b5d65e725b8e505e49ff318b95ef155cadeadfc0..0d6607071fe69b0bc62ffb66a60215344b3a6093 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;