From e24c3410686ae23247cc28cd875be706492a0e0b Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 1 Jan 2025 17:03:50 +0000 Subject: [PATCH] Fix wrong packet size when dumpong packets to file. --- src/forward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forward.c b/src/forward.c index 4184ca8..30da6e5 100644 --- a/src/forward.c +++ b/src/forward.c @@ -1391,7 +1391,7 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s &src->source, &src->dest, src->iface); #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 } }