]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 02:16:09 +0000 (02:16 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 02:16:09 +0000 (02:16 +0000)
servers/slapd/overlays/accesslog.c
servers/slapd/overlays/unique.c

index 88500027f888fbe35b307330f6a0238f6edad991..6ef157277e92dca0fd0c444678e7e56e57fe4dcd 100644 (file)
@@ -679,7 +679,7 @@ static Entry *accesslog_entry( Operation *op, int logop ) {
                op->o_tmpmemctx );
 
        strcpy( nrdn.bv_val + STRLENOF(RDNEQ), ntimestamp.bv_val );
-       nrdn.bv_len += ntimestamp.bv_len;
+       nrdn.bv_len = STRLENOF(RDNEQ)+ntimestamp.bv_len;
        build_new_dn( &e->e_name, li->li_db->be_suffix, &rdn, NULL );
        build_new_dn( &e->e_nname, li->li_db->be_nsuffix, &nrdn, NULL );
 
index f80a1c35fed9e3285a9c7f2d1f7c15a2fba856ba..d1df4dbb3ea234acc71bd6bafd7cf6b16cc9c827 100644 (file)
@@ -490,7 +490,7 @@ static int unique_modrdn(
                op->o_req_dn.bv_val, op->orr_newrdn.bv_val, 0);
 
        if ( !dnIsSuffix( &op->o_req_ndn, &ud->dn ) && 
-               (!op->orr_nnewSup || !dnIsSuffix( &op->orr_nnewSup, &ud->dn )))
+               (!op->orr_nnewSup || !dnIsSuffix( op->orr_nnewSup, &ud->dn )))
                return SLAP_CB_CONTINUE;
 
        if(ldap_bv2rdn_x(&op->oq_modrdn.rs_newrdn, &newrdn,