diff options
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/ntlmssp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index e76ad75e6e..37f5510c65 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -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) |