Commit 33ca14a8 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix loop init

parent 7a18d734
......@@ -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 ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment