Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
b6d496d5
Commit
b6d496d5
authored
Nov 19, 2007
by
Evan Hunt
Browse files
Fix memory leak with "any" and "none" ACLs [RT #17272]
parent
a3553875
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
b6d496d5
2261. [bug] Fix memory leak with "any" and "none" ACLs [RT #17272]
2260. [bug] Reported wrong clients-per-query when increasing the
value. [RT #17236]
...
...
lib/isccfg/aclconf.c
View file @
b6d496d5
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: aclconf.c,v 1.1
4
2007/1
0
/19
00:28
:2
0
each Exp $ */
/* $Id: aclconf.c,v 1.1
5
2007/1
1
/19
23:13
:2
8
each Exp $ */
#include
<config.h>
...
...
@@ -299,14 +299,28 @@ cfg_acl_fromconfig(const cfg_obj_t *caml,
const
char
*
name
=
cfg_obj_asstring
(
ce
);
if
(
strcasecmp
(
name
,
"any"
)
==
0
)
{
/* iptable entry with zero bit length */
dns_iptable_addprefix
(
iptab
,
NULL
,
0
,
ISC_TRUE
);
continue
;
result
=
dns_iptable_addprefix
(
iptab
,
NULL
,
0
,
ISC_TF
(
nest_level
!=
0
||
!
neg
));
if
(
result
!=
ISC_R_SUCCESS
)
goto
cleanup
;
if
(
nest_level
!=
0
)
{
de
->
type
=
dns_aclelementtype_nestedacl
;
de
->
negative
=
neg
;
}
else
continue
;
}
else
if
(
strcasecmp
(
name
,
"none"
)
==
0
)
{
/* negated "any" */
dns_iptable_addprefix
(
iptab
,
NULL
,
0
,
ISC_FALSE
);
continue
;
result
=
dns_iptable_addprefix
(
iptab
,
NULL
,
0
,
ISC_TF
(
nest_level
!=
0
||
neg
));
if
(
result
!=
ISC_R_SUCCESS
)
goto
cleanup
;
if
(
nest_level
!=
0
)
{
de
->
type
=
dns_aclelementtype_nestedacl
;
de
->
negative
=
!
neg
;
}
else
continue
;
}
else
if
(
strcasecmp
(
name
,
"localhost"
)
==
0
)
{
de
->
type
=
dns_aclelementtype_localhost
;
de
->
negative
=
neg
;
...
...
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