]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: use CIFS_MAX_DOMAINNAME_LEN when converting the domain name
authorJerome Marchand <jmarchan@redhat.com>
Thu, 26 May 2016 09:52:24 +0000 (11:52 +0200)
committerSteve French <smfrench@gmail.com>
Fri, 24 Jun 2016 04:44:56 +0000 (23:44 -0500)
commit6e87561becaef47c2dc709bf07066bc1607a1f50
treeb75d9bb01a6ee28c30d75d0bbac4f9837a38c135
parent84ba63473cff4b29d018170169e1cb459ab6afff
cifs: use CIFS_MAX_DOMAINNAME_LEN when converting the domain name

Currently in build_ntlmssp_auth_blob(), when converting the domain
name to UTF16, CIFS_MAX_USERNAME_LEN limit is used. It should be
CIFS_MAX_DOMAINNAME_LEN. This patch fixes this.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/sess.c