mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Use correct packet-size limit in make_local_answer()
This commit is contained in:
@@ -525,7 +525,7 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
|
||||
reply:
|
||||
if (udpfd != -1)
|
||||
{
|
||||
if (!(plen = make_local_answer(flags, gotname, plen, header, daemon->namebuff, first, last)))
|
||||
if (!(plen = make_local_answer(flags, gotname, plen, header, daemon->namebuff, limit, first, last)))
|
||||
return 0;
|
||||
|
||||
if (oph)
|
||||
@@ -2080,7 +2080,8 @@ unsigned char *tcp_request(int confd, time_t now,
|
||||
/* In case of local answer or no connections made. */
|
||||
if (m == 0)
|
||||
{
|
||||
if (!(m = make_local_answer(flags, gotname, size, header, daemon->namebuff, first, last)))
|
||||
if (!(m = make_local_answer(flags, gotname, size, header, daemon->namebuff,
|
||||
((char *) header) + 65536, first, last)))
|
||||
break;
|
||||
|
||||
if (have_pseudoheader)
|
||||
|
||||
Reference in New Issue
Block a user