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
8c707e1e
Commit
8c707e1e
authored
Dec 05, 2017
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make
373e9173
compile without DNSSEC.
parent
373e9173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/rfc1035.c
src/rfc1035.c
+8
-1
No files found.
src/rfc1035.c
View file @
8c707e1e
...
...
@@ -610,10 +610,12 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
{
if
(
secure
)
return
0
;
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
))
for
(
i
=
0
;
i
<
ntohs
(
header
->
ancount
);
i
++
)
if
(
daemon
->
rr_status
[
i
])
return
0
;
#endif
}
}
...
...
@@ -625,7 +627,9 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
int
found
=
0
,
cname_count
=
CNAME_CHAIN
;
struct
crec
*
cpp
=
NULL
;
int
flags
=
RCODE
(
header
)
==
NXDOMAIN
?
F_NXDOMAIN
:
0
;
#ifdef HAVE_DNSSEC
int
cname_short
=
0
;
#endif
unsigned
long
cttl
=
ULONG_MAX
,
attl
;
namep
=
p
;
...
...
@@ -681,7 +685,7 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
{
if
(
!
extract_name
(
header
,
qlen
,
&
p1
,
name
,
1
,
0
))
return
0
;
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
)
&&
daemon
->
rr_status
[
j
])
{
/* validated RR anywhere in CNAME chain, don't cache. */
...
...
@@ -690,12 +694,15 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
secflag
=
F_DNSSECOK
;
}
#endif
if
(
aqtype
==
T_CNAME
)
{
if
(
!
cname_count
--
)
return
0
;
/* looped CNAMES, we can't cache. */
#ifdef HAVE_DNSSEC
cname_short
=
1
;
#endif
goto
cname_loop
;
}
...
...
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