more dnParent() cleanup

This commit is contained in:
Pierangelo Masarati 2005-03-30 22:29:54 +00:00
parent 83bb1c93cb
commit 20b3d14dc3
2 changed files with 2 additions and 5 deletions

View File

@ -579,8 +579,7 @@ ldif_back_referrals( Operation *op, SlapReply *rs )
struct berval pndn = op->o_req_ndn;
for ( ; entry == NULL; ) {
struct berval opndn = pndn;
dnParent( &opndn, &pndn );
dnParent( &pndn, &pndn );
if ( !dnIsSuffix( &pndn, &op->o_bd->be_nsuffix[0] ) ) {
break;

View File

@ -299,11 +299,9 @@ backsql_dn2id(
*/
rs->sr_matched = NULL;
while ( !be_issuffix( op->o_bd, &pdn ) ) {
struct berval dn;
char *matchedDN = NULL;
dn = pdn;
dnParent( &dn, &pdn );
dnParent( &pdn, &pdn );
/*
* Empty DN ("") defaults to LDAP_SUCCESS