Fix missing reverse-records from --dynamic-host.

Thanks to Sten Spans for spotting the bug.
This commit is contained in:
Simon Kelley committed 2022-02-18 20:53:56 +00:00
1 parent e426c2d3bc
commit f4c87b504b
1 file changed
+2 -2
+2 -2
View File
@@ -1597,7 +1597,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
if (addrlist)
break;
else
else if (!(intr->flags & INP4))
while (intr->next && strcmp(intr->intr, intr->next->intr) == 0)
intr = intr->next;
}
@@ -1612,7 +1612,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
if (addrlist)
break;
else
else if (!(intr->flags & INP6))
while (intr->next && strcmp(intr->intr, intr->next->intr) == 0)
intr = intr->next;
}