summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-02-12 15:40:32 +0100
committerStefan Metzmacher <metze@samba.org>2020-02-14 12:15:32 +0000
commitef0350221e194a3dd3350eab02b38baeb32d8fd3 (patch)
treedc551aec0bf12a3fc818c1946c18de4150a3fe27 /source3/auth
parent503fc8f2ba662ecbec0788bd1710440464dc5cfd (diff)
downloadsamba-ef0350221e194a3dd3350eab02b38baeb32d8fd3.tar.gz
auth: Fix CID 1458418 Null pointer dereferences (REVERSE_INULL)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14247 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_sam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 738c2a2a788..3c12f959faf 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -188,12 +188,13 @@ static NTSTATUS auth_sam_netlogon3_auth(const struct auth_context *auth_context,
const struct auth_usersupplied_info *user_info,
struct auth_serversupplied_info **server_info)
{
- const char *effective_domain = user_info->mapped.domain_name;
+ const char *effective_domain = NULL;
bool is_my_domain;
if (!user_info || !auth_context) {
return NT_STATUS_LOGON_FAILURE;
}
+ effective_domain = user_info->mapped.domain_name;
if (user_info->mapped.account_name == NULL ||
user_info->mapped.account_name[0] == '\0')