1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/locking
Volker Lendecke fbd97ee822 smbd: Fix a leases.tdb record leak
If we set e->stale=true in the share_mode_forall_entries() callback,
the share entry will be removed directly. Thus further down
share_mode_forall_leases() won't find anything anymore. Only find
possibly still connected entries in the first walk, and then remove
the share_entries.tdb record straight away after the leases and
brlocks have been removed.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 10 21:57:05 UTC 2019 on sn-devel-184
2019-12-10 21:57:05 +00:00
..
brlock.c lib: Remove #define serverid_equal server_id_equal 2019-11-06 20:36:34 +00:00
leases_db.c dbwrap: Pass "value" to dbwrap_do_locked() callback 2019-11-22 23:57:46 +00:00
leases_db.h smbd: Add quick leases_db_get_current_state() 2019-09-17 22:49:36 +00:00
leases_util.c smbd: Let fsp_lease_type() look at leases.tdb 2019-09-17 22:49:36 +00:00
locking.c smbd: fix handling of sentinel timestamp values 2019-12-06 00:17:36 +00:00
posix.c dbwrap: Pass "value" to dbwrap_do_locked() callback 2019-11-22 23:57:46 +00:00
proto.h smbd: Add share_mode_watch_send/recv 2019-11-22 23:57:47 +00:00
share_mode_lock.c smbd: Fix a leases.tdb record leak 2019-12-10 21:57:05 +00:00