]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cifs: remove bogus first_time check in NTLMv2 session setup code
authorJeff Layton <jlayton@redhat.com>
Wed, 16 Jun 2010 17:40:18 +0000 (13:40 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 16 Jun 2010 17:40:18 +0000 (13:40 -0400)
commit8a224d489454b7457105848610cfebebdec5638d
tree6642e77046fc3ff2595d77b2b7747d608fa5cb22
parent47c78b7f40a9931a264e3c9bddccacdf8dfb9a30
cifs: remove bogus first_time check in NTLMv2 session setup code

This bug appears to be the result of a cut-and-paste mistake from the
NTLMv1 code. The function to generate the MAC key was commented out, but
not the conditional above it. The conditional then ended up causing the
session setup key not to be copied to the buffer unless this was the
first session on the socket, and that made all but the first NTLMv2
session setup fail.

Fix this by removing the conditional and all of the commented clutter
that made it difficult to see.

Cc: Stable <stable@kernel.org>
Reported-by: Gunther Deschner <gdeschne@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/sess.c