Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
e80f661d
Commit
e80f661d
authored
Sep 12, 2008
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
possible null dereference in dns_acl_isanyornone() [rt18559]
parent
5a0f94e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGES
CHANGES
+3
-0
lib/dns/acl.c
lib/dns/acl.c
+3
-2
No files found.
CHANGES
View file @
e80f661d
2439. [bug] Potential NULL dereference in dns_acl_isanyornone().
[RT #18559]
2438. [bug] Timeouts could be logged incorrectly under win32.
2437. [bug] Sockets could be closed too early, leading to
...
...
lib/dns/acl.c
View file @
e80f661d
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.4
6
2008/09/1
0 21:52:4
9 each Exp $ */
/* $Id: acl.c,v 1.4
7
2008/09/1
2 04:54:3
9 each Exp $ */
/*! \file */
...
...
@@ -144,10 +144,11 @@ dns_acl_isanyornone(dns_acl_t *acl, isc_boolean_t pos)
acl
->
iptable
->
radix
->
head
->
prefix
==
NULL
)
return
(
ISC_FALSE
);
if
(
acl
->
length
!=
0
&&
acl
->
node_count
!=
1
)
if
(
acl
->
length
!=
0
||
acl
->
node_count
!=
1
)
return
(
ISC_FALSE
);
if
(
acl
->
iptable
->
radix
->
head
->
prefix
->
bitlen
==
0
&&
acl
->
iptable
->
radix
->
head
->
data
[
0
]
!=
NULL
&&
*
(
isc_boolean_t
*
)
(
acl
->
iptable
->
radix
->
head
->
data
[
0
])
==
pos
)
return
(
ISC_TRUE
);
...
...
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