]> git.sur5r.net Git - openldap/commitdiff
more dnParent() cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 22:29:54 +0000 (22:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 22:29:54 +0000 (22:29 +0000)
servers/slapd/back-ldif/ldif.c
servers/slapd/back-sql/entry-id.c

index 5fe6a0b3b9f4d985a8c7f4627a22e9deff0303df..69f0acbb08ed6563f500433dfe3b1bc598ab48cd 100644 (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;
index abfe7027122e8e8bb089763bf864fbb386181221..071be1e47a6a1e9372dd2ae22fc369e234850956 100644 (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