[PATCH 3/6] net: tftp: check for error when retrying
Wolfram Sang
w.sang at pengutronix.de
Wed Apr 4 12:04:41 EDT 2012
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
---
net/tftp.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/net/tftp.c b/net/tftp.c
index 45ac7ad..243ad0a 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -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:
--
1.7.9.1
More information about the barebox
mailing list