From fc9bce707d1da0674c86c9d1f0b23386e672f574 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 26 Sep 2005 09:49:03 +0000 Subject: [PATCH] Check log_ops before logging unbind and abandon --- servers/slapd/overlays/accesslog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.39.5