summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2021-03-17 16:24:28 +0100
committerKarolin Seeger <kseeger@samba.org>2021-03-31 10:13:54 +0000
commitebec84c886e7d7807609a3492e02fd1347898aba (patch)
tree0ddf9b3f652ff5696568595d102ddd338963d3f2
parentda71738e987310f19d63d2b575c354156dadbf8f (diff)
downloadsamba-ebec84c886e7d7807609a3492e02fd1347898aba.tar.gz
smbd: cancel pending poll open timer in poll_open_done()
The retry of the open is scheduled below, avoid rescheduling it a second time in the open retry timeout function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14672 CI: https://gitlab.com/samba-team/samba/-/merge_requests/1843 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 171a58ff3e8ee07cf5d7af08eabcb4a7379e7ce5)
-rw-r--r--source3/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 809bfdfd28f..87c14bb4367 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3041,6 +3041,7 @@ static void poll_open_done(struct tevent_req *subreq)
status = share_mode_watch_recv(subreq, NULL, NULL);
TALLOC_FREE(subreq);
open_rec->watch_req = NULL;
+ TALLOC_FREE(open_rec->te);
DBG_DEBUG("dbwrap_watched_watch_recv returned %s\n",
nt_errstr(status));