1
0
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:
Jeremy Allison 2006-08-08 17:34:51 +00:00 committed by Gerald (Jerry) Carter
parent 4d6d92400c
commit 7ade7f947b

View File

@ -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);
}