09d58c
diff -up netkit-ftp-0.17/ftp/cmds.c.old netkit-ftp-0.17/ftp/cmds.c
09d58c
--- netkit-ftp-0.17/ftp/cmds.c.old	2007-10-17 16:28:57.000000000 +0200
09d58c
+++ netkit-ftp-0.17/ftp/cmds.c	2007-10-17 16:33:41.000000000 +0200
09d58c
@@ -764,6 +764,7 @@ usage:
09d58c
 
09d58c
 	recvrequest("RETR", argv[2], argv[1], modestr,
09d58c
 		    argv[1] != oldargv1 || argv[2] != oldargv2);
09d58c
+	(void) close(data), data = -1;
09d58c
 	restart_point = 0;
09d58c
 	return (0);
09d58c
 }