← Commit list

b99aec0ba

Eric Andersen
Eric Andersen
2003-07-30
FAILED Duration: 96s

Subject

Christian Meyer provided this patch to fix more bugs with the tftp client

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tftp.c+2 -3
@@ -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;