From: Ralph Boehme Date: Wed, 20 Jul 2016 10:36:24 +0000 (+0200) Subject: smbd: ignore ctdb tombstone records in fetch_share_mode_unlocked_parser() X-Git-Tag: samba-4.3.12~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa1254346d109e68cb4475375191c24d5b1b448;p=thirdparty%2Fsamba.git 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 (cherry picked from commit 7147859c7afc1344e76485e2cbc286679110d96e) --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 4e9de036c71..4503d5dcf19 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -620,6 +620,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); }