diff options
author | Günther Deschner <gd@samba.org> | 2006-01-19 00:03:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:11 -0500 |
commit | 7b575d7cc513b4da8734f6f06694e7c426cfd41c (patch) | |
tree | a9e770629887c9b5f33e8ff61daae3ce0fef920e /source3/lib | |
parent | 9ed512777647b1706d961e4e141e8794bad4d284 (diff) | |
download | samba-7b575d7cc513b4da8734f6f06694e7c426cfd41c.tar.gz samba-7b575d7cc513b4da8734f6f06694e7c426cfd41c.tar.bz2 samba-7b575d7cc513b4da8734f6f06694e7c426cfd41c.zip |
r13024: Add is_null_sid.
GUenther
(This used to be commit 3a6e41a0cb2872a656ea79c8d4fc4b8bce436492)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sid.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); +} |