From: Stefan Metzmacher Date: Sun, 26 Jun 2022 12:57:06 +0000 (+0000) Subject: s3:dbwrap_watch: let dbwrap_watched_watch_recv() use tevent_req_received() X-Git-Tag: ldb-2.6.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8908af569551def4e06c9aa179cf77e0beaa2638;p=thirdparty%2Fsamba.git s3:dbwrap_watch: let dbwrap_watched_watch_recv() use tevent_req_received() 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 Reviewed-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index 2bac5d12d75..88945f6ccc4 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -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; }