summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-06 17:26:49 +0200
committerVolker Lendecke <vl@samba.org>2008-05-10 11:16:59 +0200
commit0283e95a7c20bb0aeedbdd0b657a1293e449a62d (patch)
tree2f0a49b6fb4810796da4142ce782895a74ef239b /source3/auth
parent505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f (diff)
downloadsamba-0283e95a7c20bb0aeedbdd0b657a1293e449a62d.tar.gz
samba-0283e95a7c20bb0aeedbdd0b657a1293e449a62d.tar.bz2
samba-0283e95a7c20bb0aeedbdd0b657a1293e449a62d.zip
Add a mem_ctx argument to make_server_info_guest()
(This used to be commit e4a9492967f3d2b64f27943f99414608e0c03d21)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_builtin.c2
-rw-r--r--source3/auth/auth_util.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c
index ffc8b94962..3741f29779 100644
--- a/source3/auth/auth_builtin.c
+++ b/source3/auth/auth_builtin.c
@@ -42,7 +42,7 @@ static NTSTATUS check_guest_security(const struct auth_context *auth_context,
if (!(user_info->internal_username
&& *user_info->internal_username)) {
- nt_status = make_server_info_guest(server_info);
+ nt_status = make_server_info_guest(NULL, server_info);
}
return nt_status;
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 038636f868..bb3dc78e83 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1224,9 +1224,10 @@ bool init_guest_info(void)
return NT_STATUS_IS_OK(make_new_server_info_guest(&guest_info));
}
-NTSTATUS make_server_info_guest(auth_serversupplied_info **server_info)
+NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
+ auth_serversupplied_info **server_info)
{
- *server_info = copy_serverinfo(NULL, guest_info);
+ *server_info = copy_serverinfo(mem_ctx, guest_info);
return (*server_info != NULL) ? NT_STATUS_OK : NT_STATUS_NO_MEMORY;
}
@@ -1477,7 +1478,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
if (!NT_STATUS_IS_OK(nt_status)) {
TALLOC_FREE( sam_account );
if ( lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_UID ) {
- make_server_info_guest(server_info);
+ make_server_info_guest(NULL, server_info);
return NT_STATUS_OK;
}
return nt_status;
@@ -1729,7 +1730,7 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
if (!NT_STATUS_IS_OK(nt_status)) {
TALLOC_FREE( result );
if ( lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_UID ) {
- make_server_info_guest(server_info);
+ make_server_info_guest(NULL, server_info);
return NT_STATUS_OK;
}
return nt_status;