summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-27 21:46:50 +0100
committerGünther Deschner <gd@samba.org>2008-10-27 21:46:50 +0100
commita4ad2658500e83613eeb5c01a6dfb5d067803d16 (patch)
treedd17c0f4e3c7454dd18e0527e19b65e0a10e19e8 /source4/libnet
parentd04131c8ec9d327f7376ad85d8d1dba0f2bccea6 (diff)
downloadsamba-a4ad2658500e83613eeb5c01a6dfb5d067803d16.tar.gz
samba-a4ad2658500e83613eeb5c01a6dfb5d067803d16.tar.bz2
samba-a4ad2658500e83613eeb5c01a6dfb5d067803d16.zip
s4-libnet: fix user and group enumeration functions after lsa changes.
Guenther
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_group.c2
-rw-r--r--source4/libnet/libnet_user.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index cae6d6d272..eded378511 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -476,6 +476,8 @@ static void continue_lsa_domain_opened(struct composite_context *ctx)
/* prepare arguments of QueryDomainInfo call */
s->query_domain.in.handle = &s->ctx->lsa.handle;
s->query_domain.in.level = LSA_POLICY_INFO_DOMAIN;
+ s->query_domain.out.info = talloc_zero(c, union lsa_PolicyInformation *);
+ if (composite_nomem(s->query_domain.out.info, c)) return;
/* send the request */
query_req = dcerpc_lsa_QueryInfoPolicy_send(s->ctx->lsa.pipe, c, &s->query_domain);
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c
index 35b2432838..c768319452 100644
--- a/source4/libnet/libnet_user.c
+++ b/source4/libnet/libnet_user.c
@@ -989,6 +989,8 @@ static void continue_lsa_domain_opened(struct composite_context *ctx)
/* prepare arguments of QueryDomainInfo call */
s->query_domain.in.handle = &s->ctx->lsa.handle;
s->query_domain.in.level = LSA_POLICY_INFO_DOMAIN;
+ s->query_domain.out.info = talloc_zero(c, union lsa_PolicyInformation *);
+ if (composite_nomem(s->query_domain.out.info, c)) return;
/* send the request */
query_req = dcerpc_lsa_QueryInfoPolicy_send(s->ctx->lsa.pipe, c, &s->query_domain);