summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-11 21:00:13 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-11 21:00:13 +0000
commit494ea488210eae8206dce69ebbff977fe37f8f83 (patch)
treef45f0acf4ea958d1d8d1fe289e208206f8a527a6
parent6932617c50f0cd084b7d8ad4f976d7ac33394c01 (diff)
downloadsamba-494ea488210eae8206dce69ebbff977fe37f8f83.tar.gz
I think this is the one to check...
Volker (This used to be commit f6d853d36a37dd854a410717af2f7eaf9457eeb5)
-rw-r--r--source3/libsmb/ntlmssp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index e76ad75e6ec..a314aa15dba 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -172,6 +172,9 @@ static NTSTATUS ntlmssp_server_negotiate(struct ntlmssp_state *ntlmssp_state,
target_name = ntlmssp_target_name(ntlmssp_state,
neg_flags, &chal_flags);
+ if (target_name == NULL)
+ return NT_STATUS_INVALID_PARAMETER;
+
/* This should be a 'netbios domain -> DNS domain' mapping */
dnsdomname[0] = '\0';
get_mydomname(dnsdomname);