summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-16 14:18:45 +0200
committerGünther Deschner <gd@samba.org>2010-06-16 14:42:23 +0200
commitb4364add896d1657263a66c55d867d28bf5ceb1b (patch)
tree262b8d70642e401f87ba97f481495f105b8f6f21 /source3
parentfe90496ce55a5845154e4477d0eb84368c450824 (diff)
downloadsamba-b4364add896d1657263a66c55d867d28bf5ceb1b.tar.gz
samba-b4364add896d1657263a66c55d867d28bf5ceb1b.tar.bz2
samba-b4364add896d1657263a66c55d867d28bf5ceb1b.zip
s3-auth: in make_user_info_for_reply_enc make sure to check length and data
pointer of nt and lm hash. This fixes kernel cifs client with sec=ntlmv2. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index a93d44fe91..d8e838721e 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -358,8 +358,8 @@ NTSTATUS make_user_info_for_reply_enc(struct auth_usersupplied_info **user_info,
return make_user_info_map(user_info, smb_name,
client_domain,
get_remote_machine_name(),
- lm_resp.data ? &lm_resp : NULL,
- nt_resp.data ? &nt_resp : NULL,
+ lm_resp.data && (lm_resp.length > 0) ? &lm_resp : NULL,
+ nt_resp.data && (nt_resp.length > 0) ? &nt_resp : NULL,
NULL, NULL, NULL,
True);
}