summaryrefslogtreecommitdiffstats
path: root/source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch')
-rw-r--r--source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch b/source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch
new file mode 100644
index 000000000..0f995c5d4
--- /dev/null
+++ b/source/n/netkit-ftp/patches/19-netkit-ftp-0.17-fdleak.patch
@@ -0,0 +1,11 @@
+diff -up netkit-ftp-0.17/ftp/cmds.c.old netkit-ftp-0.17/ftp/cmds.c
+--- netkit-ftp-0.17/ftp/cmds.c.old 2007-10-17 16:28:57.000000000 +0200
++++ netkit-ftp-0.17/ftp/cmds.c 2007-10-17 16:33:41.000000000 +0200
+@@ -764,6 +764,7 @@ usage:
+
+ recvrequest("RETR", argv[2], argv[1], modestr,
+ argv[1] != oldargv1 || argv[2] != oldargv2);
++ (void) close(data), data = -1;
+ restart_point = 0;
+ return (0);
+ }