do not hijack loop counter (ITS#6813; blind fix)

This commit is contained in:
Pierangelo Masarati 2011-01-29 11:05:08 +00:00
parent 8fcc9b058b
commit 45d580e941

View File

@ -723,9 +723,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
async);
if ( (rc == 0) || (rc == -2) ) {
i = ldap_int_connect_cbs( ld, sb, &s, srv, (struct sockaddr *)&sin );
if ( i )
rc = i;
int err = ldap_int_connect_cbs( ld, sb, &s, srv, (struct sockaddr *)&sin );
if ( err )
rc = err;
else
break;
}