Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 1.34 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. commit acf3af45d29a9c40cb2f19b7a4d0f3b6760fe990
  2. Author:     Günther Deschner <gd@samba.org>
  3. AuthorDate: Wed Jun 16 14:18:45 2010 +0200
  4. Commit:     Günther Deschner <gd@samba.org>
  5. CommitDate: Wed Jun 16 14:20:17 2010 +0200
  6.  
  7.     s3-auth: in make_user_info_for_reply_enc make sure to check length and data
  8.     pointer of nt and lm hash.
  9.    
  10.     This fixes kernel cifs client with sec=ntlmv2.
  11.    
  12.     Guenther
  13. ---
  14.  source3/auth/auth_util.c |    4 ++--
  15.  1 files changed, 2 insertions(+), 2 deletions(-)
  16.  
  17. diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
  18. index a93d44f..d8e8387 100644
  19. --- a/source3/auth/auth_util.c
  20. +++ b/source3/auth/auth_util.c
  21. @@ -358,8 +358,8 @@ NTSTATUS make_user_info_for_reply_enc(struct auth_usersupplied_info **user_info,
  22.         return make_user_info_map(user_info, smb_name,
  23.                                   client_domain,
  24.                                   get_remote_machine_name(),
  25. -                                 lm_resp.data ? &lm_resp : NULL,
  26. -                                 nt_resp.data ? &nt_resp : NULL,
  27. +                                 lm_resp.data && (lm_resp.length > 0) ? &lm_resp : NULL,
  28. +                                 nt_resp.data && (nt_resp.length > 0) ? &nt_resp : NULL,
  29.                                   NULL, NULL, NULL,
  30.                                   True);
  31.  }