mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
wbinfo: Prevent client segfault with given EOF
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
73bd0ebe55
commit
8e82581f57
@ -1781,7 +1781,8 @@ static bool wbinfo_auth_crap(char *username, bool use_ntlmv2, bool use_lanman)
|
||||
get_winbind_netbios_name(),
|
||||
get_winbind_domain());
|
||||
|
||||
if (!SMBNTLMv2encrypt(NULL, name_user, name_domain, pass,
|
||||
if (pass != NULL &&
|
||||
!SMBNTLMv2encrypt(NULL, name_user, name_domain, pass,
|
||||
&server_chal,
|
||||
&names_blob,
|
||||
&lm, &nt, NULL, NULL)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user