From: Howard Chu Date: Mon, 26 Sep 2005 09:49:03 +0000 (+0000) Subject: Check log_ops before logging unbind and abandon X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~376 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc9bce707d1da0674c86c9d1f0b23386e672f574;p=openldap Check log_ops before logging unbind and abandon --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 6bcd9701eb..2cbda0046e 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -995,6 +995,9 @@ accesslog_unbind( Operation *op, SlapReply *rs ) SlapReply rs2 = {REP_RESULT}; Entry *e; + if ( !( li->li_ops & LOG_OP_UNBIND )) + return SLAP_CB_CONTINUE; + e = accesslog_entry( op, LOG_EN_UNBIND ); op2.o_hdr = op->o_hdr; op2.o_tag = LDAP_REQ_ADD; @@ -1025,7 +1028,7 @@ accesslog_abandon( Operation *op, SlapReply *rs ) char buf[64]; struct berval bv; - if ( !op->o_time ) + if ( !op->o_time || !( li->li_ops & LOG_OP_ABANDON )) return SLAP_CB_CONTINUE; e = accesslog_entry( op, LOG_EN_ABANDON );