tftp: fix maximum allowed blcok size form 65564 to 65464

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko committed 2026-10-03 15:26:15 +02:00
1 parent 14f6b6b580
commit 0625fac9fe
1 file changed
+1 -1
+1 -1
View File
@@ -832,7 +832,7 @@ int tftp_main(int argc UNUSED_PARAM, char **argv)
# if ENABLE_FEATURE_TFTP_BLOCKSIZE
/* Check if the blksize is valid:
* RFC2348 says between 8 and 65464 */
blksize = tftp_blksize_check(blksize_str, 65564);
blksize = tftp_blksize_check(blksize_str, 65464);
if (blksize < 0) {
//bb_error_msg("bad block size");
return EXIT_FAILURE;