diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index fcfb191717..486be51aae 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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; } }