summaryrefslogtreecommitdiff
path: root/source3/auth/auth_winbind.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-11 12:37:48 +0200
committerVolker Lendecke <vl@samba.org>2010-04-11 13:53:19 +0200
commita2d1e5e0f77220f912cacb821a928c5e5a952e47 (patch)
tree331f629b2d1cad0240281de95f797ebcde9f67d1 /source3/auth/auth_winbind.c
parentbc619586f210dad5ed01859e21b5f657a34052bf (diff)
downloadsamba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.tar.gz
samba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.tar.bz2
samba-a2d1e5e0f77220f912cacb821a928c5e5a952e47.zip
s3: Remove the make_auth_methods routine
This was just TALLOC_ZERO_P
Diffstat (limited to 'source3/auth/auth_winbind.c')
-rw-r--r--source3/auth/auth_winbind.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index 93028c4cd8..86a6194bcf 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -128,12 +128,14 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
/* module initialisation */
static NTSTATUS auth_init_winbind(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 = "winbind";
- (*auth_method)->auth = check_winbind_security;
+ result->name = "winbind";
+ result->auth = check_winbind_security;
if (param && *param) {
/* we load the 'fallback' module - if winbind isn't here, call this
@@ -142,8 +144,10 @@ static NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char
if (!load_auth_module(auth_context, param, &priv)) {
return NT_STATUS_UNSUCCESSFUL;
}
- (*auth_method)->private_data = (void *)priv;
+ result->private_data = (void *)priv;
}
+
+ *auth_method = result;
return NT_STATUS_OK;
}