When server doesn't provide SecurityBuffer on SMB2Negotiate pick default
authorSteve French <smfrench@gmail.com>
Tue, 25 Jun 2013 20:33:41 +0000 (15:33 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 26 Jun 2013 22:31:50 +0000 (17:31 -0500)
commit5d875cc928aa7c95c8c1e89497a9a644f32213d4
treea336203c4ab0b60aea478d2beb67a0057ba8f7fa
parentfdf96a907c1fbb93c633e2b7ede3b8df26d6a4c0
When server doesn't provide SecurityBuffer on SMB2Negotiate pick default

According to MS-SMB2 section 2.2.4: if no blob, client picks default which
for us will be
ses->sectype = RawNTLMSSP;
but for time being this is also our only auth choice so doesn't matter
as long as we include this fix (which does not treat the empty
SecurityBuffer as an error as the code had been doing).
We just found a server which sets blob length to zero expecting raw so
this fixes negotiation with that server.

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c