git.samba.org
/
obnox
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e944d
)
vfs_preopen: TALLOC_FREE(fde) before closing the underlying fd
master
author
Volker Lendecke
<vl@samba.org>
Wed, 26 Jun 2019 15:43:44 +0000
(17:43 +0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 28 Jun 2019 15:00:38 +0000
(17:00 +0200)
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>
source3/modules/vfs_preopen.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_preopen.c
b/source3/modules/vfs_preopen.c
index 6a1ccbd6f04a7c9248e2a05ead6da93f1a4a1d14..a2afbf179f89c8c2d1f3e51016fb2c3848628780 100644
(file)
--- a/
source3/modules/vfs_preopen.c
+++ b/
source3/modules/vfs_preopen.c
@@
-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);