]> Git Repo - u-boot.git/commit - net/tftp.c
net: tftp: Fix incorrect tftp_next_ack on no OACK
authorHarm Berntsen <[email protected]>
Fri, 27 Nov 2020 21:45:56 +0000 (21:45 +0000)
committerTom Rini <[email protected]>
Tue, 19 Jan 2021 14:15:02 +0000 (09:15 -0500)
commitbeb61e13b8134c9aeaf1b2c0a2e13ed71d3be59e
tree06ba542b2ae61abc2320f83530e78053f1c64de8
parent51723c5581241a3886a5adaa780c09138163d0b2
net: tftp: Fix incorrect tftp_next_ack on no OACK

When the tftp server did not send any OACK, the tftp_next_ack variable
was not set to the correct value . As the server was transmitting
blocks we generated a lot of 'Received unexpected block: $n, expected
$n+1' error messages. Depending on the timeout setting the transfer
could still complete though.

Signed-off-by: Harm Berntsen <[email protected]>
CC: Ramon Fried <[email protected]>
Reviewed-By: Ramon Fried <[email protected]>
net/tftp.c
This page took 0.031186 seconds and 4 git commands to generate.