diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index e68744e169b3c9fcc362d73376780cd55fcf7110..897a052270f90731628da48138ed93ada05cdf5f 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -822,6 +822,10 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time, nls_cp, first_time); iov[1].iov_len = blob_len; + /* Make sure that we tell the server that we + are using the uid that it just gave us back + on the response (challenge) */ + smb_buf->Uid = ses->Suid; } else { cERROR(1, ("invalid phase %d", phase)); rc = -ENOSYS;