]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Make copy_serverinfo non-static, add mem_ctx
authorVolker Lendecke <vl@samba.org>
Tue, 6 May 2008 14:10:23 +0000 (16:10 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 10 May 2008 09:16:59 +0000 (11:16 +0200)
(This used to be commit a3651ced9e0859578df8cc44da64e7a8066bde76)

source3/auth/auth_util.c

index 5e9da4eaff348ba4c511a7c2cc5476629261bd0f..038636f8682d8e9c5b28304261ca286b18567a09 100644 (file)
@@ -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;
 }