Commit a6c9a62e authored by Steve French's avatar Steve French Committed by Greg Kroah-Hartman

smb3: on reconnect set PreviousSessionId field

commit b2adf22fdfba85a6701c481faccdbbb3a418ccfc upstream.

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

CC: Stable <>
CC: Sachin Prabhu <>
Signed-off-by: default avatarSteve French <>
Reviewed-by: default avatarRonnie Sahlberg <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 2c6707ce
......@@ -1004,6 +1004,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;
while (sess_data->func)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment