mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
more dnParent() cleanup
This commit is contained in:
parent
83bb1c93cb
commit
20b3d14dc3
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user