summaryrefslogtreecommitdiffstats
path: root/source/libsmb/ntlmssp.c
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
commitf6d853d36a37dd854a410717af2f7eaf9457eeb5 (patch)
treebe8dbc60d631c170e6e130265b8e4369293b9fc5 /source/libsmb/ntlmssp.c
parent447f130619ad7aaab351c2b46d3e57eaf31a9454 (diff)
downloadsamba-f6d853d36a37dd854a410717af2f7eaf9457eeb5.tar.gz
samba-f6d853d36a37dd854a410717af2f7eaf9457eeb5.tar.xz
samba-f6d853d36a37dd854a410717af2f7eaf9457eeb5.zip
I think this is the one to check...
Volker
Diffstat (limited to 'source/libsmb/ntlmssp.c')
-rw-r--r--source/libsmb/ntlmssp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libsmb/ntlmssp.c b/source/libsmb/ntlmssp.c
index e76ad75e6ec..a314aa15dba 100644
--- a/source/libsmb/ntlmssp.c
+++ b/source/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);