mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
re-fix ITS#4405 (really start from the first conn)
This commit is contained in:
parent
e4d24ecce8
commit
82f7a0a3bd
1 changed files with 7 additions and 2 deletions
|
|
@ -354,8 +354,7 @@ wait4msg(
|
|||
ldap_pvt_thread_mutex_lock( &ld->ld_conn_mutex );
|
||||
#endif
|
||||
for ( lc = ld->ld_conns;
|
||||
rc == LDAP_MSG_X_KEEP_LOOKING && lc != NULL;
|
||||
lc = lc->lconn_next )
|
||||
rc == LDAP_MSG_X_KEEP_LOOKING && lc != NULL; )
|
||||
{
|
||||
if ( lc->lconn_status == LDAP_CONNST_CONNECTED &&
|
||||
ldap_is_read_ready( ld, lc->lconn_sb ) )
|
||||
|
|
@ -374,8 +373,14 @@ wait4msg(
|
|||
* sane; better restart
|
||||
* (ITS#4405) */
|
||||
lc = ld->ld_conns;
|
||||
|
||||
/* don't get to next conn! */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* next conn */
|
||||
lc = lc->lconn_next;
|
||||
}
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_unlock( &ld->ld_conn_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue