Fix oops when Windows server sent bad domain name null terminator
authorSteve French <sfrench@us.ibm.com>
Wed, 21 Feb 2007 22:33:11 +0000 (17:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 3 Mar 2007 00:32:45 +0000 (16:32 -0800)
commit3570df5b4cc57543ed24f039fb1a8bdcd198adc7
treec039dca44fd0aab4b9c08a7d92c2640408a5bde5
parent6c050fd60377c3984196477278ef79a075843861
Fix oops when Windows server sent bad domain name null terminator

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/sess.c