mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r17461: Ensure we never save a NULL SID mapping. || should be &&.
Found by Whitfield school.
Jeremy.
(This used to be commit f8584a4758
)
This commit is contained in:
parent
4d6d92400c
commit
7ade7f947b
@ -1241,7 +1241,7 @@ do_query:
|
||||
status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, name, sid, type);
|
||||
|
||||
/* and save it */
|
||||
if (domain->online || !is_null_sid(sid)) {
|
||||
if (domain->online && !is_null_sid(sid)) {
|
||||
wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user