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/lib/util_sid.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/util_sid.c') diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index f3fc5af9ea..e2b2ebf28c 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -619,3 +619,9 @@ void del_sid_from_array(const DOM_SID *sid, DOM_SID **sids, size_t *num) return; } + +BOOL is_null_sid(const DOM_SID *sid) +{ + static const DOM_SID null_sid = {0}; + return sid_equal(sid, &null_sid); +} -- cgit