summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-21 19:47:13 +0200
committerGünther Deschner <gd@samba.org>2008-04-21 20:21:40 +0200
commit1dd7ab38e7f7b5dae46cef4567957c71d6b5cc23 (patch)
tree88c38ae7ef3ee3b6fdfb9326102103885abc110d /source3/utils
parentba98dd4989db16028a2690d382ab178524ce765b (diff)
downloadsamba-1dd7ab38e7f7b5dae46cef4567957c71d6b5cc23.tar.gz
samba-1dd7ab38e7f7b5dae46cef4567957c71d6b5cc23.tar.bz2
samba-1dd7ab38e7f7b5dae46cef4567957c71d6b5cc23.zip
cldap: add talloc context to ads_cldap_netlogon().
Guenther (This used to be commit 4cee7b1bd5cd97c414b73d6f39238958480cdcf3)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index af55430fac..dbdd3e3c59 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -84,7 +84,7 @@ static int net_ads_cldap_netlogon(ADS_STRUCT *ads)
struct nbt_cldap_netlogon_5 reply;
print_sockaddr(addr, sizeof(addr), &ads->ldap.ss);
- if ( !ads_cldap_netlogon(addr, ads->server.realm, &reply ) ) {
+ if ( !ads_cldap_netlogon(talloc_tos(), addr, ads->server.realm, &reply ) ) {
d_fprintf(stderr, "CLDAP query failed!\n");
return -1;
}
@@ -389,7 +389,7 @@ static int net_ads_workgroup(int argc, const char **argv)
}
print_sockaddr(addr, sizeof(addr), &ads->ldap.ss);
- if ( !ads_cldap_netlogon(addr, ads->server.realm, &reply ) ) {
+ if ( !ads_cldap_netlogon(talloc_tos(), addr, ads->server.realm, &reply ) ) {
d_fprintf(stderr, "CLDAP query failed!\n");
return -1;
}