diff options
author | Volker Lendecke <vl@samba.org> | 2020-02-12 15:40:32 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-02-19 06:19:13 +0000 |
commit | 4ee5642bea361a3308df4743c69e6f10052a262a (patch) | |
tree | e6d83c2763d14aaf624a9ff24f009957eeb53931 | |
parent | 40b7c3c99aeb858100f0d14913fc2c03bcdcdb98 (diff) | |
download | samba-4ee5642bea361a3308df4743c69e6f10052a262a.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>
(cherry picked from commit ef0350221e194a3dd3350eab02b38baeb32d8fd3)
Autobuild-User(v4-11-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-11-test): Wed Feb 19 06:19:13 UTC 2020 on sn-devel-184
-rw-r--r-- | source3/auth/auth_sam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index 3e89febb74b..f9764d87e3c 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -182,12 +182,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') |