diff options
Diffstat (limited to 'source4/libnet/prereq_domain.c')
-rw-r--r-- | source4/libnet/prereq_domain.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/libnet/prereq_domain.c b/source4/libnet/prereq_domain.c index 039d99d9ef..679669eb62 100644 --- a/source4/libnet/prereq_domain.c +++ b/source4/libnet/prereq_domain.c @@ -29,7 +29,8 @@ #include "librpc/gen_ndr/ndr_lsa.h" -bool samr_domain_opened(struct libnet_context *ctx, const char *domain_name, +bool samr_domain_opened(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, + const char *domain_name, struct composite_context **parent_ctx, struct libnet_DomainOpen *domain_open, void (*continue_fn)(struct composite_context*), @@ -76,7 +77,7 @@ bool samr_domain_opened(struct libnet_context *ctx, const char *domain_name, } /* send request to open the domain */ - domopen_req = libnet_DomainOpen_send(ctx, domain_open, monitor); + domopen_req = libnet_DomainOpen_send(ctx, mem_ctx, domain_open, monitor); if (composite_nomem(domopen_req, *parent_ctx)) return false; composite_continue(*parent_ctx, domopen_req, continue_fn, *parent_ctx); @@ -84,7 +85,8 @@ bool samr_domain_opened(struct libnet_context *ctx, const char *domain_name, } -bool lsa_domain_opened(struct libnet_context *ctx, const char *domain_name, +bool lsa_domain_opened(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, + const char *domain_name, struct composite_context **parent_ctx, struct libnet_DomainOpen *domain_open, void (*continue_fn)(struct composite_context*), @@ -133,7 +135,7 @@ bool lsa_domain_opened(struct libnet_context *ctx, const char *domain_name, } /* send request to open the domain */ - domopen_req = libnet_DomainOpen_send(ctx, domain_open, monitor); + domopen_req = libnet_DomainOpen_send(ctx, mem_ctx, domain_open, monitor); /* see the comment above to find out why true is returned here */ if (composite_nomem(domopen_req, *parent_ctx)) return true; |