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; struct berval pndn = op->o_req_ndn;
for ( ; entry == NULL; ) { for ( ; entry == NULL; ) {
struct berval opndn = pndn; dnParent( &pndn, &pndn );
dnParent( &opndn, &pndn );
if ( !dnIsSuffix( &pndn, &op->o_bd->be_nsuffix[0] ) ) { if ( !dnIsSuffix( &pndn, &op->o_bd->be_nsuffix[0] ) ) {
break; break;

View File

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