From: Howard Chu Date: Thu, 5 Mar 2009 19:26:35 +0000 (+0000) Subject: Fix loop init X-Git-Tag: ACLCHECK_0~743 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4b0f388cb9124121d98f3d8051ca25e4fb77673;p=openldap Fix loop init --- diff --git a/tests/progs/slapd-modrdn.c b/tests/progs/slapd-modrdn.c index e52816caaf..bc3da1c6f3 100644 --- a/tests/progs/slapd-modrdn.c +++ b/tests/progs/slapd-modrdn.c @@ -183,7 +183,7 @@ do_modrdn( char *uri, char *manager, int delay, int friendly, int chaserefs ) { LDAP *ld = NULL; - int i = 0, do_retry = maxretries; + int i, do_retry = maxretries; char *DNs[2]; char *rdns[2]; int rc = LDAP_SUCCESS; @@ -208,6 +208,8 @@ do_modrdn( char *uri, char *manager, rdns[0] = strdup( DNs[1] ); DNs[1][i] = ','; + i = 0; + retry:; ldap_initialize( &ld, uri ); if ( ld == NULL ) {