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
7f008431
Commit
7f008431
authored
Apr 15, 2018
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle DNSSEC-unaware upstream servers better.
parent
a6918530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
src/dnssec.c
src/dnssec.c
+12
-5
No files found.
src/dnssec.c
View file @
7f008431
...
...
@@ -872,11 +872,19 @@ int dnssec_validate_ds(time_t now, struct dns_header *header, size_t plen, char
if
(
qtype
!=
T_DS
||
qclass
!=
class
)
rc
=
STAT_BOGUS
;
else
rc
=
dnssec_validate_reply
(
now
,
header
,
plen
,
name
,
keyname
,
NULL
,
1
,
&
neganswer
,
&
nons
);
rc
=
dnssec_validate_reply
(
now
,
header
,
plen
,
name
,
keyname
,
NULL
,
0
,
&
neganswer
,
&
nons
);
if
(
rc
==
STAT_INSECURE
)
rc
=
STAT_BOGUS
;
{
static
int
reported
=
0
;
if
(
!
reported
)
{
reported
=
1
;
my_syslog
(
LOG_WARNING
,
_
(
"Insecure DS reply received, do upstream DNS servers support DNSSEC?"
));
}
rc
=
STAT_BOGUS
;
}
p
=
(
unsigned
char
*
)(
header
+
1
);
extract_name
(
header
,
plen
,
&
p
,
name
,
1
,
4
);
p
+=
4
;
/* qtype, qclass */
...
...
@@ -1906,7 +1914,6 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
if
(
rc
==
STAT_BOGUS
||
rc
==
STAT_NEED_KEY
||
rc
==
STAT_NEED_DS
)
{
/* Zone is insecure, don't need to validate RRset */
if
(
class
)
*
class
=
class1
;
/* Class for NEED_DS or NEED_KEY */
return
rc
;
...
...
@@ -1966,7 +1973,7 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
}
/* OK, all the RRsets validate, now see if we have a missing answer or CNAME target. */
if
(
check_unsigned
)
if
(
secure
==
STAT_SECURE
)
for
(
j
=
0
;
j
<
targetidx
;
j
++
)
if
((
p2
=
targets
[
j
]))
{
...
...
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