summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap_watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/dbwrap/dbwrap_watch.c')
-rw-r--r--source3/lib/dbwrap/dbwrap_watch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c
index db0d376e3c..0c13371531 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -318,6 +318,9 @@ static void dbwrap_watch_record_stored(struct db_context *db,
status = dbwrap_record_get_watchers(db, rec, talloc_tos(),
&ids, &num_ids);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
+ goto done;
+ }
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("dbwrap_record_get_watchers failed: %s\n",
nt_errstr(status)));