summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_adex
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-07 00:40:46 +0200
committerGünther Deschner <gd@samba.org>2009-04-07 01:17:30 +0200
commitd71dec9259366e99beca69fcd9397bd38ed82c71 (patch)
tree963204bf8ced95db535348c57542edbbf3db26a3 /source3/winbindd/idmap_adex
parenteeddbb6f8466d285fd103a3a4da9ebf5afbcb613 (diff)
downloadsamba-d71dec9259366e99beca69fcd9397bd38ed82c71.tar.gz
samba-d71dec9259366e99beca69fcd9397bd38ed82c71.tar.bz2
samba-d71dec9259366e99beca69fcd9397bd38ed82c71.zip
s3-libads: avoid NULL talloc context with ads_get_dn().
Guenther
Diffstat (limited to 'source3/winbindd/idmap_adex')
-rw-r--r--source3/winbindd/idmap_adex/likewise_cell.c2
-rw-r--r--source3/winbindd/idmap_adex/provider_unified.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_adex/likewise_cell.c b/source3/winbindd/idmap_adex/likewise_cell.c
index 7354a367b8..d666d8c01a 100644
--- a/source3/winbindd/idmap_adex/likewise_cell.c
+++ b/source3/winbindd/idmap_adex/likewise_cell.c
@@ -400,7 +400,7 @@ done:
e!=NULL;
e = ads_next_entry(c->conn, e))
{
- char *dn = ads_get_dn(c->conn, NULL, e);
+ char *dn = ads_get_dn(c->conn, talloc_tos(), e);
DEBUGADD(10,(" dn: %s\n", dn ? dn : "<NULL>"));
TALLOC_FREE(dn);
diff --git a/source3/winbindd/idmap_adex/provider_unified.c b/source3/winbindd/idmap_adex/provider_unified.c
index 9134eb4e64..f9d73f5f95 100644
--- a/source3/winbindd/idmap_adex/provider_unified.c
+++ b/source3/winbindd/idmap_adex/provider_unified.c
@@ -368,7 +368,7 @@ static NTSTATUS check_result_unique_scoped(ADS_STRUCT **ads_list,
LDAPMessage *e = ads_first_entry(ads_list[i], msg_list[i]);
while (e) {
- entry_dn = ads_get_dn(ads_list[i], NULL, e);
+ entry_dn = ads_get_dn(ads_list[i], talloc_tos(), e);
BAIL_ON_PTR_ERROR(entry_dn, nt_status);
if (check_forest_scope(entry_dn)) {