From 9ee48976e26766f05101488c85bb658deb3705ee Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 3 Nov 2005 00:15:50 +0000 Subject: [PATCH] ITS#4135 remove client socket from frontend control before unbinding --- servers/slapd/syncrepl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index ddae4a2229..d49f098941 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -980,6 +980,9 @@ done: if ( res ) ldap_msgfree( res ); if ( rc && rc != LDAP_SYNC_REFRESH_REQUIRED && si->si_ld ) { + ber_socket_t s; + ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s ); + connection_client_stop( s ); ldap_unbind_ext( si->si_ld, NULL, NULL ); si->si_ld = NULL; } -- 2.39.5