smb3: on reconnect set PreviousSessionId field
authorSteve French <stfrench@microsoft.com>
Thu, 31 May 2018 20:19:25 +0000 (15:19 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 1 Jun 2018 02:23:07 +0000 (21:23 -0500)
commitb2adf22fdfba85a6701c481faccdbbb3a418ccfc
treeadc602a111c9119ae66c0562a9eccbe0679b38de
parentce558b0e17f8a6d4a57d264479d782c331266f0d
smb3: on reconnect set PreviousSessionId field

The server detects reconnect by the (non-zero) value in PreviousSessionId
of SMB2/SMB3 SessionSetup request, but this behavior regressed due
to commit 166cea4dc3a4f66f020cfb9286225ecd228ab61d
("SMB2: Separate RawNTLMSSP authentication from SMB2_sess_setup")

CC: Stable <stable@vger.kernel.org>
CC: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/smb2pdu.c