commit | 8b70f347dd76451442bc2ed0c6ae67bc485ed68f | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Fri Aug 31 10:01:51 2007 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Fri Aug 31 10:01:51 2007 +0200 |
tree | fe5a75a822a2dc269ba8b927b0c681126ead93d9 | |
parent | 83e8e47bfb97edd860849423298190e73a28ddfb [diff] |
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>