Skip to content

Commit 509dce5

Browse files
committed
Correct missing SERV_DO_DNSSEC flag, add new spot
One change to server_test_type forgot to set SERV_DO_DNSSEC. One new place still can be reused. Fixes commit e10a923, thanks to Xingcong Li for spotting it.
1 parent ffa4628 commit 509dce5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/forward.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ void reply_query(int fd, time_t now)
10821082

10831083
while (1)
10841084
{
1085-
if (server_test_type(start, domain, type, 0))
1085+
if (server_test_type(start, domain, type, SERV_DO_DNSSEC))
10861086
{
10871087
new_server = start;
10881088
if (server == start)
@@ -2482,10 +2482,7 @@ static struct frec *lookup_frec(unsigned short id, int fd, void *hash)
24822482
type = f->sentto->flags & SERV_TYPE;
24832483
s = f->sentto;
24842484
do {
2485-
if ((type == (s->flags & SERV_TYPE)) &&
2486-
(type != SERV_HAS_DOMAIN ||
2487-
(s->domain && hostname_isequal(f->sentto->domain, s->domain))) &&
2488-
!(s->flags & (SERV_LITERAL_ADDRESS | SERV_LOOP)) &&
2485+
if (server_test_type(s, f->sentto->domain, type, 0) &&
24892486
s->sfd && s->sfd->fd == fd)
24902487
return f;
24912488

0 commit comments

Comments
 (0)