summaryrefslogtreecommitdiff
path: root/net/utftpd/files/patch-utftpd_recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/utftpd/files/patch-utftpd_recv.c')
-rw-r--r--net/utftpd/files/patch-utftpd_recv.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/utftpd/files/patch-utftpd_recv.c b/net/utftpd/files/patch-utftpd_recv.c
new file mode 100644
index 000000000000..97e4e0928898
--- /dev/null
+++ b/net/utftpd/files/patch-utftpd_recv.c
@@ -0,0 +1,20 @@
+--- utftpd_recv.c.orig Mon Nov 1 10:02:32 1999
++++ utftpd_recv.c Fri Jun 11 16:37:25 2004
+@@ -69,7 +69,7 @@
+ struct sigaction old_sa;
+ const char *errortext;
+ size_t sendlength;
+- short got_blockno;
++ unsigned short got_blockno;
+ short got_opcode;
+ int is_final=0;
+
+@@ -82,6 +82,7 @@
+
+ blockno=1;
+ got=flags->segsize+TFTP_OFFSET;
++ flags->sendbuf.hdr->th_block = htons(0);
+ sendlength=flags->first_packet_length+TFTP_OFFSET;
+
+ while (1) {
+