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 719c3f1..a6ff97e 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;