From: Howard Chu Date: Thu, 3 Nov 2005 00:15:50 +0000 (+0000) Subject: ITS#4135 remove client socket from frontend control before unbinding X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ee48976e26766f05101488c85bb658deb3705ee;p=openldap ITS#4135 remove client socket from frontend control before unbinding --- 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; }