summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-06 16:10:23 +0200
committerVolker Lendecke <vl@samba.org>2008-05-10 11:16:59 +0200
commit505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f (patch)
tree473980a811c8eb11f51f4881b1f8f07594c35466
parent232853d70084cb88afd3c06bf5fe19f912e8541a (diff)
downloadsamba-505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f.tar.gz
samba-505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f.tar.bz2
samba-505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f.zip
Make copy_serverinfo non-static, add mem_ctx
(This used to be commit a3651ced9e0859578df8cc44da64e7a8066bde76)
-rw-r--r--source3/auth/auth_util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 5e9da4eaff..038636f868 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1152,11 +1152,12 @@ static NTSTATUS make_new_server_info_guest(auth_serversupplied_info **server_inf
return NT_STATUS_OK;
}
-static auth_serversupplied_info *copy_serverinfo(auth_serversupplied_info *src)
+struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
+ auth_serversupplied_info *src)
{
auth_serversupplied_info *dst;
- dst = make_server_info(NULL);
+ dst = make_server_info(mem_ctx);
if (dst == NULL) {
return NULL;
}
@@ -1225,7 +1226,7 @@ bool init_guest_info(void)
NTSTATUS make_server_info_guest(auth_serversupplied_info **server_info)
{
- *server_info = copy_serverinfo(guest_info);
+ *server_info = copy_serverinfo(NULL, guest_info);
return (*server_info != NULL) ? NT_STATUS_OK : NT_STATUS_NO_MEMORY;
}