mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Fix loop init
This commit is contained in:
parent
f8c9854aaa
commit
b4b0f388cb
1 changed files with 3 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue