diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c index 4deee1b6960a..c7c2c7e0fdf9 100644 --- a/usr.bin/tftp/tftp.c +++ b/usr.bin/tftp/tftp.c @@ -205,6 +205,7 @@ xmitfile(fd, name, mode) stopclock(); if (amount > 0) printstats("Sent", amount); + txrx_error = 1; } /* @@ -330,6 +331,7 @@ recvfile(fd, name, mode) stopclock(); if (amount > 0) printstats("Received", amount); + txrx_error = 1; } static int