s4-libnet: fix user and group enumeration functions after lsa changes.
authorGünther Deschner <gd@samba.org>
Mon, 27 Oct 2008 20:46:50 +0000 (21:46 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 27 Oct 2008 20:46:50 +0000 (21:46 +0100)
Guenther

source4/libnet/libnet_group.c
source4/libnet/libnet_user.c

index cae6d6d2725d7eec0308020a72ff9d1e725ae392..eded3785110aae555144d76e8180ad0393909a46 100644 (file)
@@ -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);
index 35b24328384a3f9712335ba5c58faa99417e1265..c76831945218211dbbe591520850a4c7be6b4192 100644 (file)
@@ -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);