summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-26 15:12:05 +0200
committerJeremy Allison <jra@samba.org>2013-04-26 15:17:23 -0700
commite13021e3af7c95c59b5997a6728d2dbd5fd27b8f (patch)
treed86b86fe9f211a75198d5edfd1069e98776459ee /source3/lib
parenta7e803485d0255fa7fa92970ee535e1e2c9a29a1 (diff)
downloadsamba-e13021e3af7c95c59b5997a6728d2dbd5fd27b8f.tar.gz
samba-e13021e3af7c95c59b5997a6728d2dbd5fd27b8f.tar.bz2
samba-e13021e3af7c95c59b5997a6728d2dbd5fd27b8f.zip
dbwrap: Allow dbwrap_record_watch_recv to not lock the record
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-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 d8f1b74a42..7bdcd998f8 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -401,6 +401,9 @@ NTSTATUS dbwrap_record_watch_recv(struct tevent_req *req,
if (tevent_req_is_nterror(req, &status)) {
return status;
}
+ if (prec == NULL) {
+ return NT_STATUS_OK;
+ }
rec = dbwrap_fetch_locked(state->db, mem_ctx, state->key);
if (rec == NULL) {
return NT_STATUS_INTERNAL_DB_ERROR;