From 1d7f8edb7a5b61055420c713f9262f6fae0aa2db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 2 Dec 2006 13:00:20 +0000 Subject: r20009: use a composite context metze (This used to be commit ed3826bc47586dbaf06993d6c9156e0f79886c07) --- source4/libnet/libnet_become_dc.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 158210c11c..3bf4d38335 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -20,15 +20,27 @@ #include "includes.h" #include "libnet/libnet.h" +#include "libcli/composite/composite.h" struct composite_context *libnet_BecomeDC_send(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) { - return NULL; + struct composite_context *c; + + c = composite_create(mem_ctx, ctx->event_ctx); + if (c == NULL) return NULL; + + composite_error(c, NT_STATUS_NOT_IMPLEMENTED); + return c; } NTSTATUS libnet_BecomeDC_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) { - return NT_STATUS_NOT_IMPLEMENTED; + NTSTATUS status; + + status = composite_wait(c); + + talloc_free(c); + return status; } NTSTATUS libnet_BecomeDC(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) -- cgit