From 20b3d14dc3dca61b8b8b9e6f3be5eebb0b01e050 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 30 Mar 2005 22:29:54 +0000 Subject: [PATCH] more dnParent() cleanup --- servers/slapd/back-ldif/ldif.c | 3 +-- servers/slapd/back-sql/entry-id.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 5fe6a0b3b9..69f0acbb08 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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; diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index abfe702712..071be1e47a 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -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 -- 2.39.5