From 99b5c75974dd904644054433a3c3ad46a4ffc498 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Sat, 15 Sep 2012 22:47:06 +0200 Subject: s3:auth fix a compiler warning --- source3/auth/token_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index aad34cbfbc..a618e214cf 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -858,7 +858,7 @@ bool user_sid_in_group_sid(const struct dom_sid *sid, const struct dom_sid *grou gid_t gid; char *found_username; struct security_token *token; - bool result; + bool result = false; enum lsa_SidType type; TALLOC_CTX *mem_ctx = talloc_stackframe(); @@ -880,8 +880,7 @@ bool user_sid_in_group_sid(const struct dom_sid *sid, const struct dom_sid *grou if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("could not create token for %s\n", dom_sid_string(mem_ctx, sid))); - TALLOC_FREE(mem_ctx); - return False; + goto done; } result = security_token_has_sid(token, group_sid); -- cgit