1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

Fix a segfault in ntlm_auth when we can't find a domain or hostname.

Volker
This commit is contained in:
Volker Lendecke -
parent 502b45b55d
commit 49c4f8a764

View File

@ -174,11 +174,13 @@ static NTSTATUS ntlmssp_server_negotiate(struct ntlmssp_state *ntlmssp_state,
/* This should be a 'netbios domain -> DNS domain' mapping */
dnsdomname[0] = '\0';
get_mydomname(dnsdomname);
if (!get_mydomname(dnsdomname))
return NT_STATUS_INVALID_PARAMETER;
strlower_m(dnsdomname);
dnsname[0] = '\0';
get_myfullname(dnsname);
if (!get_myfullname(dnsname))
return NT_STATUS_INVALID_PARAMETER;
strlower_m(dnsname);
if (chal_flags & NTLMSSP_CHAL_TARGET_INFO)