summaryrefslogtreecommitdiff
path: root/source3/locking/leases_util.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-07-08 10:15:56 +0200
committerStefan Metzmacher <metze@samba.org>2020-07-08 15:54:40 +0000
commit36812aadbd89802b1495cb257223e0d5d2d50e9c (patch)
tree266213c51b0e0441bb186ec3bf269b7aa76ae427 /source3/locking/leases_util.c
parentc66110cf33758ee0da035a05585195621b60a393 (diff)
downloadsamba-36812aadbd89802b1495cb257223e0d5d2d50e9c.tar.gz
s3:smbd: avoid dereferencing client->connections
There're typically better ways to get the same information. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/locking/leases_util.c')
-rw-r--r--source3/locking/leases_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/leases_util.c b/source3/locking/leases_util.c
index d307f420c7c..cb62bffbd7d 100644
--- a/source3/locking/leases_util.c
+++ b/source3/locking/leases_util.c
@@ -90,5 +90,5 @@ bool fsp_lease_type_is_exclusive(struct files_struct *fsp)
const struct GUID *fsp_client_guid(const files_struct *fsp)
{
- return &fsp->conn->sconn->client->connections->smb2.client.guid;
+ return &fsp->conn->sconn->client->global->client_guid;
}