mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
auth: Fix CID 1458420 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>
This commit is contained in:
parent
bd279d3f98
commit
503fc8f2ba
@ -80,12 +80,13 @@ static NTSTATUS auth_samstrict_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_local_name, 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user