]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: cancel pending poll open timer in poll_open_done()
authorRalph Boehme <slow@samba.org>
Wed, 17 Mar 2021 15:24:28 +0000 (16:24 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 18 Mar 2021 16:52:37 +0000 (16:52 +0000)
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>
source3/smbd/open.c

index fd4536b4914da9e7294d9d7221bab52b24271436..1659df9036610ecef39a1d64e5e501e2ca3e9254 100644 (file)
@@ -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));