diff options
-rw-r--r-- | source3/lib/dbwrap/dbwrap_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index 0c13371531..59288057f0 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -400,7 +400,7 @@ NTSTATUS dbwrap_record_watch_recv(struct tevent_req *req, return status; } rec = dbwrap_fetch_locked(state->db, mem_ctx, state->key); - if (req == NULL) { + if (rec == NULL) { return NT_STATUS_INTERNAL_DB_ERROR; } *prec = rec; |