Reset TreeId to zero on SMB2 TREE_CONNECT
authorJan-Marek Glogowski <glogow@fbihome.de>
Mon, 20 Feb 2017 11:25:58 +0000 (12:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:42 +0000 (14:04 +0200)
commit903377e0196f22aa783a71d763c02ae164b29c60
treeefa8464145026c47b982e70f362b3322483c2352
parent404f763e1b9f6de4db0edff73c18ef4683f67cd3
Reset TreeId to zero on SMB2 TREE_CONNECT

commit 806a28efe9b78ffae5e2757e1ee924b8e50c08ab upstream.

Currently the cifs module breaks the CIFS specs on reconnect as
described in http://msdn.microsoft.com/en-us/library/cc246529.aspx:

"TreeId (4 bytes): Uniquely identifies the tree connect for the
command. This MUST be 0 for the SMB2 TREE_CONNECT Request."

Signed-off-by: Jan-Marek Glogowski <glogow@fbihome.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Tested-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/cifs/smb2pdu.c