]> git.dujemihanovic.xyz Git - u-boot.git/commit
Fix TFTP OACK code for short packets.
authorWolfgang Denk <wd@denx.de>
Fri, 31 Aug 2007 08:01:51 +0000 (10:01 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 31 Aug 2007 08:01:51 +0000 (10:01 +0200)
commit60174746c668b309378a91488dded898e9553eae
treefe5a75a822a2dc269ba8b927b0c681126ead93d9
parentff13ac8c7bbebb238e339592de765c546dba1073
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<len-8", "i" was signed,
but "len" was unsigned, and "len-8" became a huge number for small
values of "len".

This is a workaround which replaces broken commit 8f1bc284.

Signed-off-by: Wolfgang Denk <wd@denx.de>
net/tftp.c