From 48646ee69aeb8f963d5d34abdaec783283efea71 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 6 Apr 2011 06:46:26 +1000 Subject: s3-auth: Make server_info const in create_local_token() Andreas Schneider correctly points out that this input parameter should now be const, and that found a bug where I used then used it incorrectly as a talloc context. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Wed Apr 6 00:33:31 CEST 2011 on sn-devel-104 --- source3/auth/auth_util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/auth/auth_util.c') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index e2a687ddf4..1cc78f0757 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -443,7 +443,7 @@ static NTSTATUS log_nt_token(struct security_token *token) */ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, - struct auth_serversupplied_info *server_info, + const struct auth_serversupplied_info *server_info, DATA_BLOB *session_key, struct auth_serversupplied_info **session_info_out) { @@ -527,9 +527,9 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, "ignoring it\n", sid_string_dbg(sid))); continue; } - if (!add_gid_to_array_unique(server_info, gid, - &session_info->utok.groups, - &session_info->utok.ngroups)) { + if (!add_gid_to_array_unique(session_info, gid, + &session_info->utok.groups, + &session_info->utok.ngroups)) { return NT_STATUS_NO_MEMORY; } } -- cgit