diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2010-10-26 19:10:24 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-26 22:04:30 -0400 |
commit | f7c5445a9deecffea8a4fffc0163bf582411ac8a (patch) | |
tree | efea64611599a034510be60077ca20bed68a48e8 /fs/cifs/cifsglob.h | |
parent | 307fbd31b61623ad1b5388b452118f8aea99f9d0 (diff) |
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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 7ca5f6d8ed80..67d6a2280a01 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -111,7 +111,7 @@ struct sdesc { | |||
111 | char ctx[]; | 111 | char ctx[]; |
112 | }; | 112 | }; |
113 | 113 | ||
114 | /* crypto hashing related structure/fields, not speicific to a sec mech */ | 114 | /* crypto hashing related structure/fields, not specific to a sec mech */ |
115 | struct cifs_secmech { | 115 | struct cifs_secmech { |
116 | struct crypto_shash *hmacmd5; /* hmac-md5 hash function */ | 116 | struct crypto_shash *hmacmd5; /* hmac-md5 hash function */ |
117 | struct crypto_shash *md5; /* md5 hash function */ | 117 | struct crypto_shash *md5; /* md5 hash function */ |