Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
38440b20
Commit
38440b20
authored
Apr 12, 2015
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in auth code with odd configuration.
parent
ad4a8ff7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
+29
-16
CHANGELOG
CHANGELOG
+21
-11
src/auth.c
src/auth.c
+8
-5
No files found.
CHANGELOG
View file @
38440b20
...
...
@@ -68,18 +68,31 @@ version 2.73
Fix broken DNSSEC validation of ECDSA signatures.
Add --dnssec-timestamp option, which provides an automatic
way to detect when the system time becomes valid after
boot
on systems without an RTC, whilst allowing DNS queries before the
clock is valid so that NTP can run. Thanks to
Kevin Darbyshire-Bryant for developing this idea.
way to detect when the system time becomes valid after
boot on systems without an RTC, whilst allowing DNS
queries before the clock is valid so that NTP can run.
Thanks to
Kevin Darbyshire-Bryant for developing this idea.
Add --tftp-no-fail option. Thanks to Stefan Tomanek for
the patch.
Fix crash caused by looking up servers.bind, CHAOS text record,
when more than about five --servers= lines are in the dnsmasq
config. This causes memory corruption which causes a crash later.
Thanks to Matt Coddington for sterling work chasing this down.
Fix crash caused by looking up servers.bind, CHAOS text
record, when more than about five --servers= lines are
in the dnsmasq config. This causes memory corruption
which causes a crash later. Thanks to Matt Coddington for
sterling work chasing this down.
Fix crash on receipt of certain malformed DNS requests.
Thanks to Nick Sampanis for spotting the problem.
Fix crash in authoritative DNS code, if a .arpa zone
is declared as authoritative, and then a PTR query which
is not to be treated as authoritative arrived. Normally,
directly declaring .arpa zone as authoritative is not
done, so this crash wouldn't be seen. Instead the
relevant .arpa zone should be specified as a subnet
in the auth-zone declaration. Thanks to Johnny S. Lee
for the bugreport and initial patch.
version 2.72
...
...
@@ -125,9 +138,6 @@ version 2.72
Fix problem with --local-service option on big-endian platforms
Thanks to Richard Genoud for the patch.
Fix crash on receipt of certain malformed DNS requests. Thanks
to Nick Sampanis for spotting the problem.
version 2.71
Subtle change to error handling to help DNSSEC validation
...
...
src/auth.c
View file @
38440b20
...
...
@@ -186,7 +186,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
if
(
intr
)
{
if
(
in_zone
(
zone
,
intr
->
name
,
NULL
))
if
(
local_query
||
in_zone
(
zone
,
intr
->
name
,
NULL
))
{
found
=
1
;
log_query
(
flag
|
F_REVERSE
|
F_CONFIG
,
intr
->
name
,
&
addr
,
NULL
);
...
...
@@ -208,8 +208,11 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
*
p
=
0
;
/* must be bare name */
/* add external domain */
if
(
zone
)
{
strcat
(
name
,
"."
);
strcat
(
name
,
zone
->
domain
);
}
log_query
(
flag
|
F_DHCP
|
F_REVERSE
,
name
,
&
addr
,
record_source
(
crecp
->
uid
));
found
=
1
;
if
(
add_resource_record
(
header
,
limit
,
&
trunc
,
nameoffset
,
&
ansp
,
...
...
@@ -217,7 +220,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
T_PTR
,
C_IN
,
"d"
,
name
))
anscount
++
;
}
else
if
(
crecp
->
flags
&
(
F_DHCP
|
F_HOSTS
)
&&
in_zone
(
zone
,
name
,
NULL
))
else
if
(
crecp
->
flags
&
(
F_DHCP
|
F_HOSTS
)
&&
(
local_query
||
in_zone
(
zone
,
name
,
NULL
)
))
{
log_query
(
crecp
->
flags
&
~
F_FORWARD
,
name
,
&
addr
,
record_source
(
crecp
->
uid
));
found
=
1
;
...
...
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