[syslinux] [PATCH] Fixed bug where client recv ACKs error messages from server
Kjeld Mortensen
k.h.mortensen at gmail.com
Tue Dec 16 15:27:16 PST 2008
---
tftp/tftp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tftp/tftp.c b/tftp/tftp.c
index d15da22..81cb930 100644
--- a/tftp/tftp.c
+++ b/tftp/tftp.c
@@ -262,12 +262,12 @@ void tftp_recvfile(int fd, const char *name,
const char *mode)
}
amount += size;
} while (size == SEGSIZE);
- abort: /* ok to ack, since user */
- ap->th_opcode = htons((u_short) ACK); /* has seen err msg */
+ ap->th_opcode = htons((u_short) ACK);
ap->th_block = htons((u_short) block);
(void)sendto(f, ackbuf, 4, 0, (struct sockaddr *)&peeraddr,
SOCKLEN(&peeraddr));
write_behind(file, convert); /* flush last buffer */
+ abort:
fclose(file);
stopclock();
if (amount > 0)
--
1.5.3.4
More information about the Syslinux
mailing list