1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

winbindd: properly initialize sid and type in wb_cache_name_to_sid()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2024-02-16 16:42:59 +01:00 committed by Stefan Metzmacher
parent cbd4aee50b
commit 21b9eb5b8c

View File

@ -1824,13 +1824,14 @@ NTSTATUS wb_cache_name_to_sid(struct winbindd_domain *domain,
was_online = domain->online;
ZERO_STRUCTP(sid);
*type = SID_NAME_UNKNOWN;
status = wcache_name_to_sid(domain, domain_name, name, sid, type);
if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
return status;
}
ZERO_STRUCTP(sid);
DBG_DEBUG("name_to_sid: [Cached] - doing backend query for name for domain %s\n",
domain->name );