]> git.sur5r.net Git - openldap/commitdiff
Omit auditContext when sync control is present
authorHoward Chu <hyc@openldap.org>
Sat, 8 Dec 2007 17:03:47 +0000 (17:03 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 8 Dec 2007 17:03:47 +0000 (17:03 +0000)
servers/slapd/overlays/accesslog.c

index 90205ca45c67852e3e158ff562c912bc70f076bf..2a04e84c3978efd1ec0d28d9da05674751fefafc 100644 (file)
@@ -1826,6 +1826,9 @@ accesslog_operational( Operation *op, SlapReply *rs )
        slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
        log_info *li = on->on_bi.bi_private;
 
+       if ( op->o_sync != SLAP_CONTROL_NONE )
+               return SLAP_CB_CONTINUE;
+
        if ( rs->sr_entry != NULL
                && dn_match( &op->o_bd->be_nsuffix[0], &rs->sr_entry->e_nname ) )
        {