Signed-off-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox