]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit, avoid abort when entry is NULL
authorHoward Chu <hyc@openldap.org>
Wed, 22 Oct 2003 07:57:25 +0000 (07:57 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Oct 2003 07:57:25 +0000 (07:57 +0000)
servers/slapd/syncrepl.c

index 248ff3265821a5f6d6566d53d32e46bf97f93afd..591a42c433694cbcfcb9e8b2b3072081ed856a76 100644 (file)
@@ -465,7 +465,7 @@ do_syncrepl(
                                if ( modlist ) {
                                        slap_mods_free( modlist );
                                }
-                               if ( rc_efree ) {
+                               if ( rc_efree && entry ) {
                                        entry_free( entry );
                                }
                                break;