tftp: fix maximum allowed block size from 65564 to 65464 (location #2)
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@googlemail.com>
This commit is contained in:
1 parent
0625fac9fe
commit
ca70514d85
1 file changed
+1
-1
+1
-1
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user