From: Volker Lendecke Date: Tue, 6 May 2008 14:10:23 +0000 (+0200) Subject: Make copy_serverinfo non-static, add mem_ctx X-Git-Tag: samba-4.0.0alpha6~801^2~1420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=505205b1cba38eed14d6a2d4b9c80a82b5ae8b1f;p=thirdparty%2Fsamba.git Make copy_serverinfo non-static, add mem_ctx (This used to be commit a3651ced9e0859578df8cc44da64e7a8066bde76) --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 5e9da4eaff3..038636f8682 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; }