diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-11 12:37:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-11 13:53:19 +0200 |
commit | a2d1e5e0f77220f912cacb821a928c5e5a952e47 (patch) | |
tree | 331f629b2d1cad0240281de95f797ebcde9f67d1 /source3/auth/auth_unix.c | |
parent | bc619586f210dad5ed01859e21b5f657a34052bf (diff) | |
download | samba-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_unix.c')
-rw-r--r-- | source3/auth/auth_unix.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c index 99b94b609e..86c5a586d9 100644 --- a/source3/auth/auth_unix.c +++ b/source3/auth/auth_unix.c @@ -129,12 +129,16 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, /* module initialisation */ static NTSTATUS auth_init_unix(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 = "unix"; + result->auth = check_unix_security; - (*auth_method)->name = "unix"; - (*auth_method)->auth = check_unix_security; + *auth_method = result; return NT_STATUS_OK; } |