From 565c15363c0530f890f58283e5a43dbfe17ea7fd Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 25 May 2011 15:05:56 +0000 Subject: [PATCH] PR: 2527 Submitted by: Marcus Meissner Reviewed by: steve Set cnf to NULL to avoid possible double free. --- apps/asn1pars.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/asn1pars.c b/apps/asn1pars.c index b5d65e725b..0d6607071f 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; -- 2.25.1