1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/locking
Jeremy Allison b691f6d32f s3: smbd: Fix open_files.idl to correctly ignore share_mode_lease *lease in share_mode_entry.
This is currently marked 'skip', which means it isn't stored in the
db, but printed out in ndr dump. However, this pointer can be invalid
if the lease_idx is set to 0xFFFFFFFF (invalid).

This is fixed up inside parse_share_modes(), but not until after
ndr_pull_share_mode_data() is called. If lease_idx == 0xFFFFFFFF
then ndr_print_share_mode_lease() prints an invalid value and
crashes.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12793

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 18 03:01:40 CEST 2017 on sn-devel-144
2017-05-18 03:01:40 +02:00
..
brlock.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
leases_db.c leases_db: don't leak lock_path onto talloc tos 2015-01-12 19:22:30 +01:00
leases_db.h s3:locking: Change the data model for leases_db to cope with dynamic path renames. 2014-12-09 03:44:04 +01:00
leases_util.c s3/locking: helper functions for lease types 2017-05-06 19:01:14 +02:00
locking.c s3: locking: Update oplock optimization for the leases era ! 2017-03-15 20:04:32 +01:00
posix.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
proto.h s3/locking: helper functions for lease types 2017-05-06 19:01:14 +02:00
share_mode_lock.c s3: smbd: Fix open_files.idl to correctly ignore share_mode_lease *lease in share_mode_entry. 2017-05-18 03:01:40 +02:00