]> git.sur5r.net Git - openldap/commitdiff
ITS#4135 remove client socket from frontend control before unbinding
authorHoward Chu <hyc@openldap.org>
Thu, 3 Nov 2005 00:15:50 +0000 (00:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Nov 2005 00:15:50 +0000 (00:15 +0000)
servers/slapd/syncrepl.c

index ddae4a22298a04b01a507d444b155dd5dfe489ad..d49f0989417a7b137a5696bdfa7622d64c484a12 100644 (file)
@@ -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;
        }