From 3cfa58de1256de94461e9e303984030fa6483568 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 11 May 2017 15:56:29 -0700 Subject: gensec: Add a TALLOC_CTX * to gensec_register(). Pass in the TALLOC_CTX * from the module init to remove another talloc_autofree_context() use. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source4/lib/http/gensec/basic.c | 2 +- source4/lib/http/gensec/ntlm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/http/gensec') diff --git a/source4/lib/http/gensec/basic.c b/source4/lib/http/gensec/basic.c index 64778638b66..6077aca7671 100644 --- a/source4/lib/http/gensec/basic.c +++ b/source4/lib/http/gensec/basic.c @@ -127,7 +127,7 @@ _PUBLIC_ NTSTATUS gensec_http_basic_init(TALLOC_CTX *ctx) { NTSTATUS status; - status = gensec_register(&gensec_http_basic_security_ops); + status = gensec_register(ctx, &gensec_http_basic_security_ops); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to register '%s' gensec backend!\n", gensec_http_basic_security_ops.name)); diff --git a/source4/lib/http/gensec/ntlm.c b/source4/lib/http/gensec/ntlm.c index 391f99fef0f..cc4b0f0de81 100644 --- a/source4/lib/http/gensec/ntlm.c +++ b/source4/lib/http/gensec/ntlm.c @@ -110,7 +110,7 @@ _PUBLIC_ NTSTATUS gensec_http_ntlm_init(TALLOC_CTX *ctx) { NTSTATUS status; - status = gensec_register(&gensec_http_ntlm_security_ops); + status = gensec_register(ctx, &gensec_http_ntlm_security_ops); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to register '%s' gensec backend!\n", gensec_http_ntlm_security_ops.name)); -- cgit v1.2.1