projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ceba9
)
Christian Meyer provided this patch to fix more bugs with the tftp client
author
Eric Andersen
<andersen@codepoet.org>
Wed, 30 Jul 2003 07:16:39 +0000
(07:16 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 30 Jul 2003 07:16:39 +0000
(07:16 -0000)
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index
da44284
..
a1a79a0
100644
(file)
--- a/
networking/tftp.c
+++ b/
networking/tftp.c
@@
-305,7
+305,7
@@
static inline int tftp(const int cmd, const struct hostent *host,
}
- if (finished) {
+ if (finished
&& (opcode == TFTP_ACK)
) {
break;
}
@@
-346,11
+346,10
@@
static inline int tftp(const int cmd, const struct hostent *host,
case 0:
bb_error_msg("timeout");
+ timeout--;
if (timeout == 0) {
len = -1;
bb_error_msg("last timeout");
- } else {
- timeout--;
}
break;