Skip to content
Snippets Groups Projects
Commit 33ca14a8 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix loop init

parent 7a18d734
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment