[BusyBox] Patch for bugs in tftp.c

Christian Meyer chrisime at web.de
Tue Jul 29 10:27:51 UTC 2003


Hi

We've solved two other bugs in the tftp client:

--- tftp.c  Sat Jul 26 10:16:10 2003
+++ tftp.c.new  Tue Jul 29 12:23:36 2003
@@ -305,7 +305,7 @@
            }


-           if (finished) {
+           if (finished && (opcode == TFTP_ACK)) {
                break;
            }
·
@@ -346,11 +346,10 @@
            case 0:
                bb_error_msg("timeout");
·
+               timeout--;
                if (timeout == 0) {
                    len = -1;
                    bb_error_msg("last timeout");
-               } else {
-                   timeout--;
                }
                break;



Regards,
Christian Meyer

Technische Universität München
E-Mail: meyerc at in.tum.de
UIN: 72107443
AIM: chrisime
Jabber: chrisime at charent.de
______________________________________________________________________________
Wo gibt es den besten Spam-Schutz? Laut ComputerBild 15-03 bei
WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021122
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1438 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20030729/985564f8/attachment.bin 


More information about the busybox mailing list