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