mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Use correct packet length when 0x20 flipping truncated packet.
This makes no difference in practice, since only the query is operated on, but it is more correct.
This commit is contained in:
@@ -1490,13 +1490,13 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s
|
||||
log_query(F_UPSTREAM, NULL, NULL, "truncated", 0);
|
||||
|
||||
/* This gets the name back to the state it was in when we started. */
|
||||
flip_queryname(header, nn, prev, &forward->frec_src);
|
||||
flip_queryname(header, new, prev, &forward->frec_src);
|
||||
|
||||
for (src = &forward->frec_src, prev = NULL; src; prev = src, src = src->next)
|
||||
{
|
||||
/* If you didn't undertand this above, you won't understand it here either. */
|
||||
if (prev)
|
||||
flip_queryname(header, nn, prev, src);
|
||||
flip_queryname(header, new, prev, src);
|
||||
|
||||
if (src->fd != -1 && nn > src->udp_pkt_size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user