From: Pierangelo Masarati Date: Sat, 29 Jan 2011 11:05:08 +0000 (+0000) Subject: do not hijack loop counter (ITS#6813; blind fix) X-Git-Tag: MIGRATION_CVS2GIT~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45d580e94177a9f63d1802144c6ea9b3b172550b;p=openldap do not hijack loop counter (ITS#6813; blind fix) --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index d8d601e814..dd270374fd 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -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; }