summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-02 13:00:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:46 -0500
commit1d7f8edb7a5b61055420c713f9262f6fae0aa2db (patch)
treebe950e99acf45410498448ff96b07c59122f068b
parent1e02e77fe1c6540e75d98a0a089c1faffa77a31f (diff)
downloadsamba-1d7f8edb7a5b61055420c713f9262f6fae0aa2db.tar.gz
samba-1d7f8edb7a5b61055420c713f9262f6fae0aa2db.tar.bz2
samba-1d7f8edb7a5b61055420c713f9262f6fae0aa2db.zip
r20009: use a composite context
metze (This used to be commit ed3826bc47586dbaf06993d6c9156e0f79886c07)
-rw-r--r--source4/libnet/libnet_become_dc.c16
1 files 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)