mirror of
https://github.com/samba-team/samba.git
synced 2025-01-31 01:48:16 +03:00
s3:smbd: add a comment stating that file_close_user() is redundant for SMB2
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13549 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Sep 1 01:26:35 CEST 2018 on sn-devel-144 (cherry picked from commit 5d95f79f604d90c2646225a0f2470f05dd71e19e)
This commit is contained in:
parent
9fe8691cda
commit
37f8294a63
@ -1660,6 +1660,12 @@ NTSTATUS smbXsrv_session_logoff(struct smbXsrv_session *session)
|
||||
session->status = NT_STATUS_USER_SESSION_DELETED;
|
||||
|
||||
if (session->compat) {
|
||||
/*
|
||||
* For SMB2 this is a bit redundant as files are also close
|
||||
* below via smb2srv_tcon_disconnect_all() -> ... ->
|
||||
* smbXsrv_tcon_disconnect() -> close_cnum() ->
|
||||
* file_close_conn().
|
||||
*/
|
||||
file_close_user(sconn, session->compat->vuid);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user