From c8ab67cad852ec2457adf15bf7883c2f5cdb1b00 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 10 May 2009 23:27:43 +0200 Subject: tftp: do not risk invoking Sorcerer's Apprentice syndrome examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko --- networking/tftp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'networking/tftp.c') diff --git a/networking/tftp.c b/networking/tftp.c index 352037f1b..6cd3f69d3 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)) { -- cgit v1.2.3