Skip to content
Snippets Groups Projects
Commit 60174746 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent ff13ac8c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment