smbd: Use share_mode_entry's lease data in vfs_default_durable_reconnect()
authorVolker Lendecke <vl@samba.org>
Wed, 10 Apr 2019 19:34:24 +0000 (21:34 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:31 +0000 (04:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/smbd/durable.c

index 719c3f1a5f27cfe6064b0cd2ba3f645639d6fccf..a6ff97e3a766593f784e1a112727a26627d26649 100644 (file)
@@ -723,10 +723,10 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
 
                /*
                 * Ensure the existing client guid matches the
-                * stored one in the share_mode_lease.
+                * stored one in the share_mode_entry.
                 */
                if (!GUID_equal(fsp_client_guid(fsp),
-                               &l->client_guid)) {
+                               &e->client_guid)) {
                        TALLOC_FREE(lck);
                        fsp_free(fsp);
                        return NT_STATUS_OBJECT_NAME_NOT_FOUND;