From 7b575d7cc513b4da8734f6f06694e7c426cfd41c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 19 Jan 2006 00:03:07 +0000 Subject: r13024: Add is_null_sid. GUenther (This used to be commit 3a6e41a0cb2872a656ea79c8d4fc4b8bce436492) --- source3/nsswitch/winbindd_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index efae956884..4c3306a8ac 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -106,7 +106,6 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const { struct winbindd_domain *domain; const char *alternative_name = NULL; - static const DOM_SID null_sid = {0}; /* ignore alt_name if we are not in an AD domain */ @@ -128,7 +127,7 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const } } if (sid) { - if (sid_equal(sid, &null_sid) ) { + if (is_null_sid(sid)) { } else if (sid_equal(sid, &domain->sid)) { return domain; -- cgit