From 27ab60f5d406adee641d7a288822ba4c34eed416 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 25 Jul 2005 04:15:57 +0000 Subject: r8748: fixed build. Andrew, please check. (This used to be commit 9411bd4e5e7ac9fd0aacd1432de967eda45e64f4) --- source4/utils/net/net_vampire.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source4/utils/net') diff --git a/source4/utils/net/net_vampire.c b/source4/utils/net/net_vampire.c index e60fd85a7d..72f791db66 100644 --- a/source4/utils/net/net_vampire.c +++ b/source4/utils/net/net_vampire.c @@ -29,7 +29,7 @@ int net_samdump(struct net_context *ctx, int argc, const char **argv) { NTSTATUS status; struct libnet_context *libnetctx; - union libnet_SamDump r; + struct libnet_SamDump r; libnetctx = libnet_context_init(NULL); if (!libnetctx) { @@ -37,16 +37,14 @@ int net_samdump(struct net_context *ctx, int argc, const char **argv) } libnetctx->cred = ctx->credentials; - /* prepare password change */ - r.generic.level = LIBNET_SAMDUMP_GENERIC; - r.generic.error_string = NULL; + r.level = LIBNET_SAMDUMP_GENERIC; + r.error_string = NULL; - /* do the domain join */ status = libnet_SamDump(libnetctx, ctx->mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("libnet_SamDump returned %s: %s\n", nt_errstr(status), - r.generic.error_string)); + r.error_string)); return -1; } -- cgit