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
f7443d76
Commit
f7443d76
authored
Jan 19, 2016
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problems in last commit when DNSSEC not enabled.
parent
f344dbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/forward.c
src/forward.c
+2
-9
No files found.
src/forward.c
View file @
f7443d76
...
...
@@ -331,8 +331,8 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
#ifdef HAVE_DNSSEC
do_dnssec
=
type
&
SERV_DO_DNSSEC
;
type
&=
~
SERV_DO_DNSSEC
;
#endif
#endif
type
&=
~
SERV_DO_DNSSEC
;
if
(
!
flags
&&
!
(
forward
=
get_new_frec
(
now
,
NULL
,
0
)))
/* table full - server failure. */
...
...
@@ -1461,9 +1461,6 @@ static int tcp_key_recurse(time_t now, int status, struct dns_header *header, si
struct
dns_header
*
new_header
=
NULL
;
u16
*
length
=
NULL
;
(
void
)
have_mark
;
(
void
)
mark
;
while
(
1
)
{
int
type
=
SERV_DO_DNSSEC
;
...
...
@@ -1621,10 +1618,8 @@ unsigned char *tcp_request(int confd, time_t now,
socklen_t
peer_len
=
sizeof
(
union
mysockaddr
);
int
query_count
=
0
;
unsigned
char
*
pheader
;
#ifdef HAVE_CONNTRACK
unsigned
int
mark
=
0
;
int
have_mark
=
0
;
#endif
if
(
getpeername
(
confd
,
(
struct
sockaddr
*
)
&
peer_addr
,
&
peer_len
)
==
-
1
)
return
packet
;
...
...
@@ -1783,9 +1778,7 @@ unsigned char *tcp_request(int confd, time_t now,
if
(
gotname
)
flags
=
search_servers
(
now
,
&
addrp
,
gotname
,
daemon
->
namebuff
,
&
type
,
&
domain
,
&
norebind
);
#ifdef HAVE_DNSSEC
type
&=
~
SERV_DO_DNSSEC
;
#endif
if
(
type
!=
0
||
option_bool
(
OPT_ORDER
)
||
!
daemon
->
last_server
)
last_server
=
daemon
->
servers
;
...
...
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