[git commit] tftp: fix maximum allowed block size from 65564 to 65464 (location #2)

Denys Vlasenko vda.linux at googlemail.com
Sat Oct 3 23:28:33 UTC 2026


commit: https://git.busybox.net/busybox/commit/?id=ca70514d85c57f40a8768eb9e88972ab464486ac
branch: https://git.busybox.net/busybox/log/?h=master

Patch by Valentin. He did send the patch. Which I didn't notice
in the email, decided "bug clear enough, can do it myself",
missed the second location with a buggy constant,
forgot to attribute the fix, and made *two* typos in the commit message.
:(

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/tftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/tftp.c b/networking/tftp.c
index d1eebdf1c..95bdc495f 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -962,7 +962,7 @@ int tftpd_main(int argc UNUSED_PARAM, char **argv)
 		if (opt_len > 0) {
 			res = tftp_get_option("blksize", opt_str, opt_len);
 			if (res) {
-				blksize = tftp_blksize_check(res, 65564);
+				blksize = tftp_blksize_check(res, 65464);
 				if (blksize < 0) {
 					G_error_pkt_reason = ERR_BAD_OPT;
 					/* will just send error pkt */


More information about the busybox-cvs mailing list