Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
191f8031
Commit
191f8031
authored
Jul 24, 2014
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jul 25, 2014
Browse files
ITS#7906 fix ppolicy_connection_destroy
It can still run after ppolicy_close has freed the connection table
parent
d90895e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
191f8031
...
...
@@ -1269,7 +1269,7 @@ ppolicy_bind( Operation *op, SlapReply *rs )
static
int
ppolicy_connection_destroy
(
BackendDB
*
bd
,
Connection
*
conn
)
{
if
(
!
BER_BVISEMPTY
(
&
pwcons
[
conn
->
c_conn_idx
].
dn
))
{
if
(
pwcons
&&
!
BER_BVISEMPTY
(
&
pwcons
[
conn
->
c_conn_idx
].
dn
))
{
ch_free
(
pwcons
[
conn
->
c_conn_idx
].
dn
.
bv_val
);
BER_BVZERO
(
&
pwcons
[
conn
->
c_conn_idx
].
dn
);
}
...
...
@@ -2330,9 +2330,10 @@ ppolicy_close(
/* Perhaps backover should provide bi_destroy hooks... */
ov_count
--
;
if
(
ov_count
<=
0
&&
pwcons
)
{
pwcons
--
;
free
(
pwcons
);
pw_conn
*
pwc
=
pwcons
;
pwcons
=
NULL
;
pwc
--
;
ch_free
(
pwc
);
}
free
(
pi
->
def_policy
.
bv_val
);
free
(
pi
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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