]> git.sur5r.net Git - openldap/commitdiff
Fix refresh mode rescheduling
authorHoward Chu <hyc@openldap.org>
Mon, 3 Nov 2003 06:57:13 +0000 (06:57 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 3 Nov 2003 06:57:13 +0000 (06:57 +0000)
servers/slapd/syncrepl.c

index fcfb1917171bc5303e1c1cdcfb8c157e9ee9eb9c..486be51aae407edecfee9753227a12796d569509 100644 (file)
@@ -701,6 +701,8 @@ do_syncrepl(
                        ch_free( si->si_syncCookie.bv_val );
                        si->si_syncCookie.bv_val = NULL;
                        si->si_syncCookie.bv_len = 0;
+                       /* Session closed due to receipt of search result */
+                       if ( rc == -2 ) rc = 0;
                }
        }