summaryrefslogtreecommitdiff
path: root/source4/lib/policy/gp_ldap.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-08-21 02:24:12 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-08-21 03:22:05 +0200
commitc0fe5e095df4b39e7b048c289e8e46de2b836dad (patch)
treee058403192e42af20b7117006ecd8fa156644529 /source4/lib/policy/gp_ldap.c
parent12e1fdf0899c8f9176f4a7e789faa2758c4eaa70 (diff)
downloadsamba-c0fe5e095df4b39e7b048c289e8e46de2b836dad.tar.gz
samba-c0fe5e095df4b39e7b048c289e8e46de2b836dad.tar.bz2
samba-c0fe5e095df4b39e7b048c289e8e46de2b836dad.zip
s4/libpolicy: Install header file.
Diffstat (limited to 'source4/lib/policy/gp_ldap.c')
-rw-r--r--source4/lib/policy/gp_ldap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/policy/gp_ldap.c b/source4/lib/policy/gp_ldap.c
index de56e4c5d2..c390be2ad3 100644
--- a/source4/lib/policy/gp_ldap.c
+++ b/source4/lib/policy/gp_ldap.c
@@ -177,7 +177,6 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx,
return NT_STATUS_UNSUCCESSFUL;
}
-
*gp_ctx = talloc_zero(mem_ctx, struct gp_context);
NT_STATUS_HAVE_NO_MEMORY(gp_ctx);
@@ -185,7 +184,7 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx,
(*gp_ctx)->credentials = credentials;
(*gp_ctx)->ev_ctx = ev_ctx;
(*gp_ctx)->ldb_ctx = ldb_ctx;
- (*gp_ctx)->active_dc = io->out.dcs[0];
+ (*gp_ctx)->active_dc = talloc_reference(*gp_ctx, &io->out.dcs[0]);
/* We don't need to keep the libnet context */
talloc_free(net_ctx);