mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
do not hijack loop counter (ITS#6813; blind fix)
This commit is contained in:
parent
8fcc9b058b
commit
45d580e941
@ -723,9 +723,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
|
|||||||
async);
|
async);
|
||||||
|
|
||||||
if ( (rc == 0) || (rc == -2) ) {
|
if ( (rc == 0) || (rc == -2) ) {
|
||||||
i = ldap_int_connect_cbs( ld, sb, &s, srv, (struct sockaddr *)&sin );
|
int err = ldap_int_connect_cbs( ld, sb, &s, srv, (struct sockaddr *)&sin );
|
||||||
if ( i )
|
if ( err )
|
||||||
rc = i;
|
rc = err;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user