ftp/netkit-ftp-0.17-fdleak.patch
Petr Šabata 1666a24e9c RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/ftp#b1415fc448cd0131b94f8c8bcaede3f1eb394460
2020-10-15 00:38:36 +02:00

12 lines
406 B
Diff

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);
}