svn commit: r339061 - stable/10/usr.bin/tftp
Alan Somers
asomers at FreeBSD.org
Mon Oct 1 16:10:28 UTC 2018
Author: asomers
Date: Mon Oct 1 16:10:27 2018
New Revision: 339061
URL: https://svnweb.freebsd.org/changeset/base/339061
Log:
MFC r337779:
tftp: Close a resource leak when putting files
Reported by: Coverity
CID: 1394842
Modified:
stable/10/usr.bin/tftp/main.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.bin/tftp/main.c
==============================================================================
--- stable/10/usr.bin/tftp/main.c Mon Oct 1 16:09:20 2018 (r339060)
+++ stable/10/usr.bin/tftp/main.c Mon Oct 1 16:10:27 2018 (r339061)
@@ -475,6 +475,7 @@ put(int argc, char *argv[])
printf("putting %s to %s:%s [%s]\n",
cp, hostname, targ, mode);
xmitfile(peer, port, fd, targ, mode);
+ close(fd);
return;
}
/* this assumes the target is a directory */
More information about the svn-src-stable-10
mailing list