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
88d57510
Commit
88d57510
authored
Aug 16, 2007
by
Howard Chu
Browse files
ITS#5094 fix from HEAD
parent
1b1fa920
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
88d57510
...
...
@@ -61,6 +61,7 @@ typedef struct pw_conn {
static
pw_conn
*
pwcons
;
static
int
ppolicy_cid
;
static
int
ov_count
;
typedef
struct
pass_policy
{
AttributeDescription
*
ad
;
/* attribute to which the policy applies */
...
...
@@ -2118,6 +2119,7 @@ ppolicy_db_open(
BackendDB
*
be
)
{
ov_count
++
;
return
overlay_register_control
(
be
,
LDAP_CONTROL_PASSWORDPOLICYREQUEST
);
}
...
...
@@ -2128,8 +2130,13 @@ ppolicy_close(
{
slap_overinst
*
on
=
(
slap_overinst
*
)
be
->
bd_info
;
pp_info
*
pi
=
on
->
on_bi
.
bi_private
;
free
(
pwcons
);
/* Perhaps backover should provide bi_destroy hooks... */
ov_count
--
;
if
(
ov_count
<=
0
&&
pwcons
)
{
free
(
pwcons
);
pwcons
=
NULL
;
}
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