]> git.sur5r.net Git - openldap/commitdiff
do not hijack loop counter (ITS#6813; blind fix)
authorPierangelo Masarati <ando@openldap.org>
Sat, 29 Jan 2011 11:05:08 +0000 (11:05 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 29 Jan 2011 11:05:08 +0000 (11:05 +0000)
libraries/libldap/os-ip.c

index d8d601e8142a6d2fe4e9e476f8a5aa521945478e..dd270374fd44b6f8369f6ad0cd7d7d0090e30497 100644 (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;
                }