Skip to content

Commit

Permalink
Revert off-by-2 patch for TFP packet end in dnsmasq
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Feb 27, 2025
1 parent 3158465 commit 6d6198c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dnsmasq/tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ||
Expand Down

0 comments on commit 6d6198c

Please sign in to comment.