Skip to content

Commit

Permalink
smb3: on reconnect set PreviousSessionId field
Browse files Browse the repository at this point in the history
The server detects reconnect by the (non-zero) value in PreviousSessionId
of SMB2/SMB3 SessionSetup request, but this behavior regressed due
to commit 166cea4
("SMB2: Separate RawNTLMSSP authentication from SMB2_sess_setup")

CC: Stable <[email protected]>
CC: Sachin Prabhu <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
  • Loading branch information
Steve French committed Jun 1, 2018
1 parent ce558b0 commit b2adf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/cifs/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@ SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
sess_data->ses = ses;
sess_data->buf0_type = CIFS_NO_BUFFER;
sess_data->nls_cp = (struct nls_table *) nls_cp;
sess_data->previous_session = ses->Suid;

#ifdef CONFIG_CIFS_SMB311
/*
Expand Down

0 comments on commit b2adf22

Please sign in to comment.