From 105635e23c5c77c5efed727bbc686650406ab82e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Dec 2007 21:10:58 +0100 Subject: Use sid_string_talloc where we have a tmp talloc ctx (This used to be commit f00ab810d2540679bec109498ac89e1eafe18f03) --- source3/auth/auth_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/auth/auth_util.c') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index c0a9e9bc84..0d4caecb2d 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -586,12 +586,12 @@ static NTSTATUS log_nt_token(TALLOC_CTX *tmp_ctx, NT_USER_TOKEN *token) for (i=1; inum_sids; i++) { group_sidstr = talloc_asprintf( tmp_ctx, "%s %s", group_sidstr, - sid_string_static(&token->user_sids[i])); + sid_string_talloc(tmp_ctx, &token->user_sids[i])); } command = talloc_string_sub( tmp_ctx, lp_log_nt_token_command(), - "%s", sid_string_static(&token->user_sids[0])); + "%s", sid_string_talloc(tmp_ctx, &token->user_sids[0])); command = talloc_string_sub(tmp_ctx, command, "%t", group_sidstr); if (command == NULL) { -- cgit