summaryrefslogtreecommitdiff
path: root/source4/auth/auth_builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/auth_builtin.c')
-rw-r--r--source4/auth/auth_builtin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/auth/auth_builtin.c b/source4/auth/auth_builtin.c
index 611552e903..c67b9b6835 100644
--- a/source4/auth/auth_builtin.c
+++ b/source4/auth/auth_builtin.c
@@ -44,7 +44,8 @@ static NTSTATUS check_guest_security(const struct auth_context *auth_context,
if (!(user_info->internal_username.str
&& *user_info->internal_username.str)) {
- nt_status = make_server_info_guest(auth_context, server_info);
+ nt_status = make_server_info_guest(discard_const(auth_context),
+ server_info);
}
return nt_status;