Patch from Christian Meyer:
authorEric Andersen <andersen@codepoet.org>
Sat, 26 Jul 2003 08:16:10 +0000 (08:16 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 26 Jul 2003 08:16:10 +0000 (08:16 -0000)
    The client gives up way too soon because timeout is set to 0 ...
    There's a solution for that problem.

networking/tftp.c

index a33b5c21eb96a88b5d2c6bdacf15d87d843ac137..da44284dc3cd6cf163877656b65d863de5a900e1 100644 (file)
@@ -286,6 +286,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
                /* send packet */
 
 
+               timeout = bb_tftp_num_retries;  /* re-initialize */
                do {
 
                        len = cp - buf;