From a2d1e5e0f77220f912cacb821a928c5e5a952e47 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Apr 2010 12:37:48 +0200 Subject: s3: Remove the make_auth_methods routine This was just TALLOC_ZERO_P --- source3/auth/auth_server.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'source3/auth/auth_server.c') diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index f0f0267bdb..4bcb7967c0 100644 --- a/source3/auth/auth_server.c +++ b/source3/auth/auth_server.c @@ -454,12 +454,17 @@ use this machine as the password server.\n")); static NTSTATUS auth_init_smbserver(struct auth_context *auth_context, const char* param, auth_methods **auth_method) { - if (!make_auth_methods(auth_context, auth_method)) { + struct auth_methods *result; + + result = TALLOC_ZERO_P(auth_context, struct auth_methods); + if (result == NULL) { return NT_STATUS_NO_MEMORY; } - (*auth_method)->name = "smbserver"; - (*auth_method)->auth = check_smbserver_security; - (*auth_method)->get_chal = auth_get_challenge_server; + result->name = "smbserver"; + result->auth = check_smbserver_security; + result->get_chal = auth_get_challenge_server; + + *auth_method = result; return NT_STATUS_OK; } -- cgit