mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix prev commit, return NULL if rewrite returns original DN
This commit is contained in:
parent
bdf52f4fc4
commit
995c4c5bb3
@ -1577,7 +1577,9 @@ syncrepl_rewrite_dn(
|
||||
rc = rewrite( si->si_rewrite, SUFFIXM_CTX, dn->bv_val, &sdn->bv_val );
|
||||
dn->bv_val[dn->bv_len] = nul;
|
||||
|
||||
if ( rc == REWRITE_REGEXEC_OK && sdn->bv_val )
|
||||
if ( sdn->bv_val == dn->bv_val )
|
||||
sdn->bv_val = NULL;
|
||||
else if ( rc == REWRITE_REGEXEC_OK && sdn->bv_val )
|
||||
sdn->bv_len = strlen( sdn->bv_val );
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user