Skip to content

Commit

Permalink
Merge branch 'tcpdns'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsm committed Apr 20, 2022
2 parents ee263b9 + c619051 commit da4ec46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions trunk/user/dnsmasq/dnsmasq-2.8x/src/forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,11 +832,12 @@ void reply_query(int fd, int family, time_t now)
break;

if (!server)
{
if (serveraddr.sa.sa_family == AF_INET ? (serveraddr.in.sin_addr.s_addr != INADDR_ANY && htonl(serveraddr.in.sin_addr.s_addr) != INADDR_LOOPBACK) : (memcmp(&serveraddr.in6.sin6_addr, &in6addr_any, sizeof(in6addr_any)) && memcmp(&serveraddr.in6.sin6_addr, &in6addr_loopback, sizeof(in6addr_loopback))))
return;

return;
}
/* If sufficient time has elapsed, try and expand UDP buffer size again. */
if (difftime(now, server->pktsz_reduced) > UDP_TEST_TIME)
else if (difftime(now, server->pktsz_reduced) > UDP_TEST_TIME)
server->edns_pktsz = daemon->edns_pktsz;

hash = hash_questions(header, n, daemon->namebuff);
Expand Down

0 comments on commit da4ec46

Please sign in to comment.