tftp: Close a resource leak when putting files

Reported by:	Coverity
CID:		1394842
MFC after:	2 weeks
This commit is contained in:
Alan Somers 2018-08-14 17:20:31 +00:00
parent 7b9c5eb0a5
commit e40369745c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337779

View File

@ -499,6 +499,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 */