summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/conf/conf_def.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c
index 20bea03783..0173a7117c 100644
--- a/src/lib/libcrypto/conf/conf_def.c
+++ b/src/lib/libcrypto/conf/conf_def.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_def.c,v 1.43 2024/08/31 09:44:00 tb Exp $ */ 1/* $OpenBSD: conf_def.c,v 1.44 2024/08/31 09:46:17 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -319,7 +319,10 @@ err:
319 *line = eline; 319 *line = eline;
320 ERR_asprintf_error_data("line %ld", eline); 320 ERR_asprintf_error_data("line %ld", eline);
321 if ((h != conf->data) && (conf->data != NULL)) { 321 if ((h != conf->data) && (conf->data != NULL)) {
322 CONF_free(conf->data); 322 CONF ctmp;
323
324 CONF_set_nconf(&ctmp, conf->data);
325 ctmp.meth->destroy_data(&ctmp);
323 conf->data = NULL; 326 conf->data = NULL;
324 } 327 }
325 if (v != NULL) { 328 if (v != NULL) {