summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/tftp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tftp.c b/net/tftp.c
index 84e970bec1..380094d493 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -502,6 +502,7 @@ static void tftp_handler(uchar *pkt, unsigned dest, struct in_addr sip,
int block = ntohs(*s);
int ack_ok = (tftp_cur_block == block);
+ tftp_prev_block = tftp_cur_block;
tftp_cur_block = (unsigned short)(block + 1);
update_block_number();
if (ack_ok)