diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-11 15:56:29 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-05-13 16:50:13 +0200 |
commit | 3cfa58de1256de94461e9e303984030fa6483568 (patch) | |
tree | 3873ac82aab9e5d5ad8bf6be5e4e4e2b5261526b /source4/lib/http/gensec | |
parent | 6f05597f5f02c2ad2b01a66e3b3b4625c6f05021 (diff) | |
download | samba-3cfa58de1256de94461e9e303984030fa6483568.tar.gz |
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 <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source4/lib/http/gensec')
-rw-r--r-- | source4/lib/http/gensec/basic.c | 2 | ||||
-rw-r--r-- | source4/lib/http/gensec/ntlm.c | 2 |
2 files changed, 2 insertions, 2 deletions
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)); |