From: Günther Deschner Date: Wed, 16 Jun 2010 12:18:45 +0000 (+0200) Subject: s3-auth: in make_user_info_for_reply_enc make sure to check length and data X-Git-Url: http://git.samba.org/?p=kamenim%2Fsamba.git;a=commitdiff_plain;h=b4364add896d1657263a66c55d867d28bf5ceb1b 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 --- 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); }