diff options
author | Denys Vlasenko | 2009-05-10 23:27:43 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-05-10 23:27:43 +0200 |
commit | c8ab67cad852ec2457adf15bf7883c2f5cdb1b00 (patch) | |
tree | 18829f74854afb26e11a1364b38d158fe7a0a2f3 /networking | |
parent | 8082ea1000af5103b86611835cdca23863e201db (diff) | |
download | busybox-c8ab67cad852ec2457adf15bf7883c2f5cdb1b00.zip busybox-c8ab67cad852ec2457adf15bf7883c2f5cdb1b00.tar.gz |
tftp: do not risk invoking Sorcerer's Apprentice syndrome
examples/udhcp/simple.script: fix incorrect test for $1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/tftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 352037f..6cd3f69 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -501,11 +501,14 @@ static int tftp_protocol( } continue; /* send ACK */ } +/* Disabled to cope with servers with Sorcerer's Apprentice Syndrome */ +#if 0 if (recv_blk == (block_nr - 1)) { /* Server lost our TFTP_ACK. Resend it */ block_nr = recv_blk; continue; } +#endif } if (CMD_PUT(option_mask32) && (opcode == TFTP_ACK)) { |