summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-25 04:15:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:01 -0500
commit27ab60f5d406adee641d7a288822ba4c34eed416 (patch)
treeca24a3892537a64ed2dc8e5144ffb0e89a6fac6b /source4/utils/net
parent616ea8deb42979593911a04cf7c56909fbaee7b6 (diff)
downloadsamba-27ab60f5d406adee641d7a288822ba4c34eed416.tar.gz
samba-27ab60f5d406adee641d7a288822ba4c34eed416.tar.bz2
samba-27ab60f5d406adee641d7a288822ba4c34eed416.zip
r8748: fixed build. Andrew, please check.
(This used to be commit 9411bd4e5e7ac9fd0aacd1432de967eda45e64f4)
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net_vampire.c10
1 files changed, 4 insertions, 6 deletions
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;
}