
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 1.34 KB | hits: 12 | expires: Never
commit acf3af45d29a9c40cb2f19b7a4d0f3b6760fe990
Author: Günther Deschner <gd@samba.org>
AuthorDate: Wed Jun 16 14:18:45 2010 +0200
Commit: Günther Deschner <gd@samba.org>
CommitDate: Wed Jun 16 14:20:17 2010 +0200
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
---
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 a93d44f..d8e8387 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);
}