version 1.130, 2006/06/15 03:18:06
|
version 1.131, 2006/08/18 15:12:16
|
Line 1
|
Line 1
|
/* result.c - wait for an ldap result */ |
/* result.c - wait for an ldap result */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.129 2006/06/13 16:00:33 ando Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.130 2006/06/15 03:18:06 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2006 The OpenLDAP Foundation. |
* Copyright 1998-2006 The OpenLDAP Foundation. |
Line 354 wait4msg(
|
Line 354 wait4msg(
|
ldap_pvt_thread_mutex_lock( &ld->ld_conn_mutex ); |
ldap_pvt_thread_mutex_lock( &ld->ld_conn_mutex ); |
#endif |
#endif |
for ( lc = ld->ld_conns; |
for ( lc = ld->ld_conns; |
rc == LDAP_MSG_X_KEEP_LOOKING && lc != NULL; |
rc == LDAP_MSG_X_KEEP_LOOKING && lc != NULL; ) |
lc = lc->lconn_next ) |
|
{ |
{ |
if ( lc->lconn_status == LDAP_CONNST_CONNECTED && |
if ( lc->lconn_status == LDAP_CONNST_CONNECTED && |
ldap_is_read_ready( ld, lc->lconn_sb ) ) |
ldap_is_read_ready( ld, lc->lconn_sb ) ) |
Line 374 wait4msg(
|
Line 373 wait4msg(
|
* sane; better restart |
* sane; better restart |
* (ITS#4405) */ |
* (ITS#4405) */ |
lc = ld->ld_conns; |
lc = ld->ld_conns; |
|
|
|
/* don't get to next conn! */ |
|
break; |
} |
} |
} |
} |
|
|
|
/* next conn */ |
|
lc = lc->lconn_next; |
} |
} |
#ifdef LDAP_R_COMPILE |
#ifdef LDAP_R_COMPILE |
ldap_pvt_thread_mutex_unlock( &ld->ld_conn_mutex ); |
ldap_pvt_thread_mutex_unlock( &ld->ld_conn_mutex ); |