diff options
author | Ralph Boehme <slow@samba.org> | 2016-07-20 12:36:24 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-08-08 14:26:24 +0200 |
commit | 7147859c7afc1344e76485e2cbc286679110d96e (patch) | |
tree | 2a609567037e7293c476866ddc9b9ef4af92b075 /source3/locking | |
parent | 464b386d55b0c509b86645bdac7f6d3df489e902 (diff) | |
download | samba-7147859c7afc1344e76485e2cbc286679110d96e.tar.gz |
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 <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/share_mode_lock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index b5a63f8bf2e..f738323ef7c 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); } |