mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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> (cherry picked from commit 7147859c7afc1344e76485e2cbc286679110d96e)
This commit is contained in:
parent
15bcc4a1f0
commit
dfa1254346
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user