From 7147859c7afc1344e76485e2cbc286679110d96e Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 20 Jul 2016 12:36:24 +0200 Subject: [PATCH] smbd: ignore ctdb tombstone records in fetch_share_mode_unlocked_parser() dbwrap_parse_record() can return ctdb tombstone records from the lctdb, ignore them. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12005 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- source3/locking/share_mode_lock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index b5a63f8bf2..f738323ef7 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -628,6 +628,12 @@ static void fetch_share_mode_unlocked_parser( struct share_mode_lock *lck = talloc_get_type_abort( private_data, struct share_mode_lock); + if (data.dsize == 0) { + /* Likely a ctdb tombstone record, ignore it */ + lck->data = NULL; + return; + } + lck->data = parse_share_modes(lck, key, data); } -- 2.34.1