1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

vfs_preopen: TALLOC_FREE(fde) before closing the underlying fd

Without that we might get wrong stuff out of epoll

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun 28 16:42:42 UTC 2019 on sn-devel-184
This commit is contained in:
Volker Lendecke 2019-06-26 17:43:44 +02:00 committed by Michael Adam
parent c26e42cb53
commit 0b556e7827

View File

@ -57,6 +57,7 @@ struct preopen_state {
static void preopen_helper_destroy(struct preopen_helper *c)
{
int status;
TALLOC_FREE(c->fde);
close(c->fd);
c->fd = -1;
kill(c->pid, SIGKILL);