s3:dbwrap_watch: let dbwrap_watched_watch_recv() use tevent_req_received()
authorStefan Metzmacher <metze@samba.org>
Sun, 26 Jun 2022 12:57:06 +0000 (12:57 +0000)
committerRalph Boehme <slow@samba.org>
Tue, 26 Jul 2022 13:40:34 +0000 (13:40 +0000)
At the end of the dbwrap_watched_watch_recv() all temporary state should
be destroyed. It also means dbwrap_watched_watch_state_destructor() was
triggered.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/dbwrap/dbwrap_watch.c

index 2bac5d12d75909dab9461c7f3283f529e2d48949..88945f6ccc47b380cfdc79f67d7df05192e8a879 100644 (file)
@@ -1104,6 +1104,7 @@ NTSTATUS dbwrap_watched_watch_recv(struct tevent_req *req,
        NTSTATUS status;
 
        if (tevent_req_is_nterror(req, &status)) {
+               tevent_req_received(req);
                return status;
        }
        if (blockerdead != NULL) {
@@ -1112,6 +1113,7 @@ NTSTATUS dbwrap_watched_watch_recv(struct tevent_req *req,
        if (blocker != NULL) {
                *blocker = state->blocker;
        }
+       tevent_req_received(req);
        return NT_STATUS_OK;
 }