diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 8 | ||||
-rw-r--r-- | source3/auth/proto.h | 2 |
2 files changed, 5 insertions, 5 deletions
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; } } diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 15e79dda0a..b88bb8c626 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -102,7 +102,7 @@ struct samu; NTSTATUS make_server_info_sam(struct auth_serversupplied_info **server_info, struct samu *sampass); 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); NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username, |