Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
68216c2b
Commit
68216c2b
authored
Oct 14, 2017
by
Howard Chu
Committed by
Quanah Gibson-Mount
Oct 17, 2017
Browse files
ITS#8752 accesslog: cleanup should only be called on failures
parent
583715e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
68216c2b
...
...
@@ -1943,7 +1943,7 @@ accesslog_mod_cleanup( Operation *op, SlapReply *rs )
op
->
o_tmpfree
(
sc
,
op
->
o_tmpmemctx
);
if
(
on
)
{
if
(
on
&&
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
BackendInfo
*
bi
=
op
->
o_bd
->
bd_info
;
op
->
o_bd
->
bd_info
=
(
BackendInfo
*
)
on
;
accesslog_response
(
op
,
rs
);
...
...
@@ -1990,11 +1990,11 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
}
if
(
doit
)
{
slap_callback
*
cb
=
op
->
o_tmpcalloc
(
1
,
sizeof
(
slap_callback
),
op
->
o_tmpmemctx
)
,
*
cb2
;
slap_callback
*
cb
=
op
->
o_tmpcalloc
(
1
,
sizeof
(
slap_callback
),
op
->
o_tmpmemctx
);
cb
->
sc_cleanup
=
accesslog_mod_cleanup
;
cb
->
sc_private
=
on
;
for
(
cb2
=
op
->
o_callback
;
cb2
->
sc_next
;
cb2
=
cb2
->
sc_next
);
cb2
->
sc_next
=
cb
;
cb
->
sc_next
=
op
->
o_callback
;
op
->
o_callback
=
cb
;
#ifdef RMUTEX_DEBUG
Debug
(
LDAP_DEBUG_SYNC
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment