From: Pavel Shilovsky <[email protected]>
Signed-off-by: Pavel Shilovsky <[email protected]>
---
fs/cifs/smb2pdu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ee7eec1..4ce496a 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -1035,6 +1035,8 @@ SMB2_logoff(const int xid, struct cifs_ses *ses)
/* since no tcon, smb2_init can not do this, so do here */
pSMB2->hdr.SessionId = ses->Suid;
+ if (server->sec_mode & SECMODE_SIGN_REQUIRED)
+ pSMB2->hdr.Flags |= SMB2_FLAGS_SIGNED;
rc = smb2_sendrcv_norsp(xid, ses, &pSMB2->hdr,
CIFS_STD_OP | CIFS_LOG_ERROR);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html