[CIFS] Fix oops when Windows server sent bad domain name null terminator
authorSteve French <sfrench@us.ibm.com>
Mon, 22 Jan 2007 01:19:30 +0000 (01:19 +0000)
committerSteve French <sfrench@us.ibm.com>
Mon, 22 Jan 2007 01:19:30 +0000 (01:19 +0000)
commit8e6f195af0e1f226e9b2e0256af8df46adb9d595
tree343ce515f09b4510d73871f2e67963183cdc8085
parentbd2abf177b3384375c43906be551d976e4c18166
[CIFS] Fix oops when Windows server sent bad domain name null terminator

Fixes RedHat bug 211672

Windows sends one byte (instead of two) of null to terminate final Unicode
string (domain name) in session setup response in some cases - this caused
cifs to misalign some informational strings (making it hard to convert
from UCS16 to UTF8).

Thanks to Shaggy for his help and Akemi Yagi for debugging/testing

Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/sess.c