freebsd-nq/usr.bin/tftp
Gavin Atkinson c54da67276 Fix transfer statistics in the "send file" case - The conditional used
to print the stats were using an uninitialised variable. [1]

Fix trasnfer statistics in the "receive file" case - the statistics struct
was being cleared both before and after the initial connect to the remote
server.  As a result, the printed time and calculated bandwidth covers
the time to connect ad well as the time to transfer the file.  This may
not be ideal, but now at least matches the "send file" case.

Found by:	clang static analyser [1]
Reviewed by:	imp
2010-06-27 14:21:08 +00:00
..
main.c Go ahead and merge the work edwin@ on tftpd into the tree. It is a 2010-05-04 06:13:17 +00:00
Makefile Go ahead and merge the work edwin@ on tftpd into the tree. It is a 2010-05-04 06:13:17 +00:00
tftp.1 Go ahead and merge the work edwin@ on tftpd into the tree. It is a 2010-05-04 06:13:17 +00:00
tftp.c Fix transfer statistics in the "send file" case - The conditional used 2010-06-27 14:21:08 +00:00
tftp.h Doh! Add another new file forgotten by the importer of edwin@'s tftp 2010-05-04 17:00:18 +00:00