9
0
Fork 0

net: tftp: check for error when retrying

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Wolfram Sang 2012-04-04 18:04:41 +02:00 committed by Sascha Hauer
parent 53d611789c
commit f31693eb58
1 changed files with 3 additions and 1 deletions

View File

@ -345,7 +345,9 @@ static int do_tftpb(int argc, char *argv[])
net_poll();
if (is_timeout(tftp_timer_start, SECOND)) {
show_progress(-1);
tftp_send();
tftp_err = tftp_send();
if (tftp_err)
goto out_unreg;
}
}
out_unreg: