NTLM auth and sign - minor error corrections and cleanup
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Tue, 26 Oct 2010 23:10:24 +0000 (18:10 -0500)
committerSteve French <sfrench@us.ibm.com>
Wed, 27 Oct 2010 02:04:30 +0000 (02:04 +0000)
commitf7c5445a9deecffea8a4fffc0163bf582411ac8a
treeefea64611599a034510be60077ca20bed68a48e8
parent307fbd31b61623ad1b5388b452118f8aea99f9d0
NTLM auth and sign - minor error corrections and cleanup

Minor cleanup - Fix spelling mistake, make meaningful (goto) label

In function setup_ntlmv2_rsp(), do not return 0 and leak memory,
let the tiblob get freed.

For function find_domain_name(), pass already available nls table pointer
instead of loading and unloading the table again in this function.

For ntlmv2, the case sensitive password length is the length of the
response, so subtract session key length (16 bytes) from the .len.

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/sess.c