From 9a7b90e0e4870f124c6126508e81275827ce601e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Wed, 19 May 1999 14:15:15 +0000 Subject: [PATCH] Fixed segfault in a ldif2ldbm-bdb2 child --- servers/slapd/back-bdb2/txn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb2/txn.c b/servers/slapd/back-bdb2/txn.c index 7010a3a11a..635b6667b1 100644 --- a/servers/slapd/back-bdb2/txn.c +++ b/servers/slapd/back-bdb2/txn.c @@ -272,7 +272,8 @@ bdb2i_txn_close_files( BackendDB *be ) } - ldbm_close( head->nextidFile ); + if ( head->nextidFile ) + ldbm_close( head->nextidFile ); } -- 2.39.5