diff options
author | Simo Sorce <idra@samba.org> | 2014-02-28 16:57:23 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-03-13 15:08:26 +0100 |
commit | cf73692f96d0ab7d2722695d02e4eceb1358574b (patch) | |
tree | bbac2ee0ca4327a85b943a71738e1599557af6be /source3/auth | |
parent | 48ffca0acac83bb31266390361ee77e1eaa2f2be (diff) | |
download | samba-cf73692f96d0ab7d2722695d02e4eceb1358574b.tar.gz samba-cf73692f96d0ab7d2722695d02e4eceb1358574b.tar.xz samba-cf73692f96d0ab7d2722695d02e4eceb1358574b.zip |
s3-auth: Make is_null_sid() check easier to read.
Signed-off-by: Simo Sorce <idra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/server_info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c index 43711d5bc0..c363f444d9 100644 --- a/source3/auth/server_info.c +++ b/source3/auth/server_info.c @@ -453,6 +453,7 @@ NTSTATUS passwd_to_SamInfo3(TALLOC_CTX *mem_ctx, enum lsa_SidType type; uint32_t num_sids = 0; struct dom_sid *user_sids = NULL; + bool is_null; bool ok; tmp_ctx = talloc_stackframe(); @@ -514,8 +515,8 @@ NTSTATUS passwd_to_SamInfo3(TALLOC_CTX *mem_ctx, } /* Make sure we have a valid group sid */ - ok = !is_null_sid(&group_sid); - if (!ok) { + is_null = is_null_sid(&group_sid); + if (is_null) { status = NT_STATUS_NO_SUCH_USER; goto done; } |