From ebec84c886e7d7807609a3492e02fd1347898aba Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 17 Mar 2021 16:24:28 +0100 Subject: 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 Reviewed-by: Jeremy Allison (cherry picked from commit 171a58ff3e8ee07cf5d7af08eabcb4a7379e7ce5) --- source3/smbd/open.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit v1.2.1