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_netlogond.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source3/auth/auth_netlogond.c') diff --git a/source3/auth/auth_netlogond.c b/source3/auth/auth_netlogond.c index bfd12281c4..5e05f1b15b 100644 --- a/source3/auth/auth_netlogond.c +++ b/source3/auth/auth_netlogond.c @@ -299,12 +299,16 @@ static NTSTATUS auth_init_netlogond(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; } + result->name = "netlogond"; + result->auth = check_netlogond_security; - (*auth_method)->name = "netlogond"; - (*auth_method)->auth = check_netlogond_security; + *auth_method = result; return NT_STATUS_OK; } -- cgit