]> git.sur5r.net Git - openldap/commitdiff
don't test a NULL BackendDB * (ITS#6385)
authorPierangelo Masarati <ando@openldap.org>
Wed, 18 Nov 2009 09:51:49 +0000 (09:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 18 Nov 2009 09:51:49 +0000 (09:51 +0000)
servers/slapd/syncrepl.c

index 80b7c34b7f1827b173e65012894167a3e1c35984..ffefe52e813588bc19f88f0fcbe37b44995d21f0 100644 (file)
@@ -3718,7 +3718,7 @@ syncinfo_free( syncinfo_t *sie, int free_all )
                if ( sie->si_logbase.bv_val ) {
                        ch_free( sie->si_logbase.bv_val );
                }
-               if ( SLAP_SYNC_SUBENTRY( sie->si_be )) {
+               if ( sie->si_be && SLAP_SYNC_SUBENTRY( sie->si_be )) {
                        ch_free( sie->si_contextdn.bv_val );
                }
                if ( sie->si_attrs ) {