From: Pierangelo Masarati Date: Wed, 30 Mar 2005 22:29:54 +0000 (+0000) Subject: more dnParent() cleanup X-Git-Tag: OPENLDAP_AC_BP~1034 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20b3d14dc3dca61b8b8b9e6f3be5eebb0b01e050;p=openldap more dnParent() cleanup --- 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