From: Wolfgang Denk Date: Fri, 31 Aug 2007 08:01:51 +0000 (+0200) Subject: Fix TFTP OACK code for short packets. X-Git-Tag: v1.3.0-rc1~12^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60174746c668b309378a91488dded898e9553eae;p=u-boot Fix TFTP OACK code for short packets. The old code had a loop limit overflow bug which caused a semi- infinite loop for small packets, because in "i --- diff --git a/net/tftp.c b/net/tftp.c index fb2f50564e..5ee7676466 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -276,8 +276,12 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len) #endif TftpState = STATE_OACK; TftpServerPort = src; - /* Check for 'blksize' option */ - for (i=0;i