From: Dr. Stephen Henson Date: Wed, 25 May 2011 15:06:32 +0000 (+0000) Subject: PR: 2527 X-Git-Tag: OpenSSL_0_9_8s~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03e3fbb702fe370730c0fc9f4de2938531a45fbf;p=oweals%2Fopenssl.git PR: 2527 Submitted by: Marcus Meissner Reviewed by: steve Set cnf to NULL to avoid possible double free. --- diff --git a/apps/asn1pars.c b/apps/asn1pars.c index bde61d02d1..305cdfc6af 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -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;