From 45d580e94177a9f63d1802144c6ea9b3b172550b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 29 Jan 2011 11:05:08 +0000 Subject: [PATCH] do not hijack loop counter (ITS#6813; blind fix) --- libraries/libldap/os-ip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5