TFTP: Work around tftpd-hpa upload bug
authorTim Newsome <tnewsome@aristanetworks.com>
Fri, 24 Sep 2010 16:43:49 +0000 (09:43 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 26 Sep 2010 21:30:56 +0000 (23:30 +0200)
commit6bf2014745bb2aad4ce80c7a8f4cf924fb782817
treecc54eb3a1404760581707b1acbd617c27e2e7ed0
parenta10f5b34ff7932060beb4d297be1241b81b64774
TFTP: Work around tftpd-hpa upload bug

tftpd-hpa has a bug where it will send an incorrect ack when the block
counter wraps and tftp options have been sent. Work around that by
accepting an ack for 65535 when we're expecting one for 0.
lib/tftp.c