summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-09-15 22:47:06 +0200
committerChristian Ambach <ambi@samba.org>2012-09-16 11:50:11 -0700
commit99b5c75974dd904644054433a3c3ad46a4ffc498 (patch)
treec3030730c3a9ca905327b255ca023db8dadca64b
parentc0d4f2462f75e0bc0545402b76984b4e6fcb13f1 (diff)
downloadsamba-99b5c75974dd904644054433a3c3ad46a4ffc498.tar.gz
samba-99b5c75974dd904644054433a3c3ad46a4ffc498.tar.bz2
samba-99b5c75974dd904644054433a3c3ad46a4ffc498.zip
s3:auth fix a compiler warning
-rw-r--r--source3/auth/token_util.c5
1 files changed, 2 insertions, 3 deletions
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);