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

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 */