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_server.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_server.c')
-rw-r--r-- | source3/auth/auth_server.c | 13 |
1 files changed, 9 insertions, 4 deletions
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; } |