summaryrefslogtreecommitdiffstats
path: root/source3/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-16 18:12:17 -0700
committerJeremy Allison <jra@samba.org>2009-07-16 18:12:17 -0700
commit9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786 (patch)
tree6178d83f548e59d96e7335d6d47f7cf2a427fefd /source3/auth
parentf6bed79ec6f287ac5da79151b97b6cf4776aab7a (diff)
downloadsamba-9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786.tar.gz
samba-9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786.tar.xz
samba-9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786.zip
Remove an unused talloc context.
Jeremy.
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index fd4c503752..ce8722a1b4 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -82,7 +82,6 @@ static void get_ntlm_challenge(struct auth_context *auth_context,
DATA_BLOB challenge = data_blob_null;
const char *challenge_set_by = NULL;
auth_methods *auth_method;
- TALLOC_CTX *mem_ctx;
if (auth_context->challenge.length) {
DEBUG(5, ("get_ntlm_challenge (auth subsystem): returning previous challenge by module %s (normal)\n",
@@ -106,12 +105,8 @@ static void get_ntlm_challenge(struct auth_context *auth_context,
continue;
}
- mem_ctx = talloc_init("auth_get_challenge for module %s", auth_method->name);
- if (!mem_ctx) {
- smb_panic("talloc_init() failed!");
- }
-
- challenge = auth_method->get_chal(auth_context, &auth_method->private_data, mem_ctx);
+ challenge = auth_method->get_chal(auth_context, &auth_method->private_data,
+ auth_context->mem_ctx);
if (!challenge.length) {
DEBUG(3, ("auth_get_challenge: getting challenge from authentication method %s FAILED.\n",
auth_method->name));
@@ -121,7 +116,6 @@ static void get_ntlm_challenge(struct auth_context *auth_context,
challenge_set_by = auth_method->name;
auth_context->challenge_set_method = auth_method;
}
- talloc_destroy(mem_ctx);
}
if (!challenge_set_by) {