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:
parent
cbd4aee50b
commit
21b9eb5b8c
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user