mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8022 an async connect may still succeed immediately
This commit is contained in:
parent
6046584531
commit
ae6347bac1
@ -485,6 +485,10 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
|
|||||||
if ( rc != -1 ) {
|
if ( rc != -1 ) {
|
||||||
srv = *srvp;
|
srv = *srvp;
|
||||||
|
|
||||||
|
/* If we fully connected, async is moot */
|
||||||
|
if ( rc == 0 )
|
||||||
|
async = 0;
|
||||||
|
|
||||||
if ( ld->ld_urllist_proc && ( !async || rc != -2 ) ) {
|
if ( ld->ld_urllist_proc && ( !async || rc != -2 ) ) {
|
||||||
ld->ld_urllist_proc( ld, srvlist, srvp, ld->ld_urllist_params );
|
ld->ld_urllist_proc( ld, srvlist, srvp, ld->ld_urllist_params );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user