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
Tero Saarni
OpenLDAP
Commits
eec654dc
Commit
eec654dc
authored
Jan 04, 2015
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jan 05, 2015
Browse files
ITS#8014 plug onetime leak in slapadd -w
parent
5eba5d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapcommon.c
View file @
eec654dc
...
...
@@ -996,6 +996,7 @@ slap_tool_update_ctxcsn(
fprintf
(
stderr
,
"%s: couldn't create context entry
\n
"
,
progname
);
rc
=
EXIT_FAILURE
;
}
entry_free
(
ctxcsn_e
);
}
else
{
fprintf
(
stderr
,
"%s: context entry is missing
\n
"
,
progname
);
rc
=
EXIT_FAILURE
;
...
...
@@ -1003,9 +1004,14 @@ slap_tool_update_ctxcsn(
}
else
{
ctxcsn_e
=
be
->
be_entry_get
(
be
,
ctxcsn_id
);
if
(
ctxcsn_e
!=
NULL
)
{
Operation
op
=
{
0
};
Entry
*
e
=
entry_dup
(
ctxcsn_e
);
int
change
;
Attribute
*
attr
=
attr_find
(
e
->
e_attrs
,
slap_schema
.
si_ad_contextCSN
);
int
change
;
op
.
o_bd
=
be
;
be_entry_release_r
(
&
op
,
ctxcsn_e
);
if
(
attr
)
{
int
i
;
...
...
Write
Preview
Supports
Markdown
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