Fix wrong packet size when dumpong packets to file.

This commit is contained in:
Simon Kelley
2025-01-01 17:03:50 +00:00
parent 5ef6c8c24f
commit e24c341068

View File

@@ -1391,7 +1391,7 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s
&src->source, &src->dest, src->iface); &src->source, &src->dest, src->iface);
#ifdef HAVE_DUMPFILE #ifdef HAVE_DUMPFILE
dump_packet_udp(DUMP_REPLY, daemon->packet, (size_t)nn, NULL, &src->source, src->fd); dump_packet_udp(DUMP_REPLY, daemon->packet, (size_t)new, NULL, &src->source, src->fd);
#endif #endif
} }
} }