]> git.sur5r.net Git - openldap/commitdiff
Fixed segfault in a ldif2ldbm-bdb2 child
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 19 May 1999 14:15:15 +0000 (14:15 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 19 May 1999 14:15:15 +0000 (14:15 +0000)
servers/slapd/back-bdb2/txn.c

index 7010a3a11ad114f57710cd21dd08f0812e0d3a4a..635b6667b1e053bac8fe265e90e542e5b71586da 100644 (file)
@@ -272,7 +272,8 @@ bdb2i_txn_close_files( BackendDB *be )
 
        }
 
-       ldbm_close( head->nextidFile );
+       if ( head->nextidFile )
+               ldbm_close( head->nextidFile );
 
 }