diff options
author | Günther Deschner <gd@samba.org> | 2010-06-16 14:18:45 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-06-18 08:33:33 +0200 |
commit | 864a2bd71f17c869356770a0d34fbf828b9aa27f (patch) | |
tree | b2da9aea72a0c8146632ae770d0fff777f35cad0 | |
parent | 4ee20c7d5ff2f3f127b7a198e968d6539bcb5602 (diff) | |
download | samba-864a2bd71f17c869356770a0d34fbf828b9aa27f.tar.gz |
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
(cherry picked from commit b4364add896d1657263a66c55d867d28bf5ceb1b)
Fix bug #7517 (session setup from linux kernel cifs client fails with
sec=ntlmv2).
(cherry picked from commit a95df865d474b0ba59ad95dcb8c20c923c66f4ba)
-rw-r--r-- | source3/auth/auth_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 8167a80a4fa..3fa7224b2e1 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -468,8 +468,8 @@ NTSTATUS make_user_info_for_reply_enc(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); } |