From 6d6198c944c5277d5286c36450ad17538d00f207 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 27 Feb 2025 05:47:43 +0100 Subject: [PATCH] Revert off-by-2 patch for TFP packet end in dnsmasq Signed-off-by: DL6ER --- src/dnsmasq/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dnsmasq/tftp.c b/src/dnsmasq/tftp.c index 637a566f2..831d2f241 100644 --- a/src/dnsmasq/tftp.c +++ b/src/dnsmasq/tftp.c @@ -360,7 +360,7 @@ void tftp_request(struct listener *listen, time_t now) } p = packet + 2; - end = packet + 2 + len; + end = packet + len; if (ntohs(*((unsigned short *)packet)) != OP_RRQ || !(filename = next(&p, end)) ||