r8748: fixed build. Andrew, please check.
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Jul 2005 04:15:57 +0000 (04:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:01 +0000 (13:30 -0500)
(This used to be commit 9411bd4e5e7ac9fd0aacd1432de967eda45e64f4)

source4/utils/net/net_vampire.c

index e60fd85a7de627e44929476c751c66a96c856c68..72f791db669cdc60ec75e64d35635c482ff995db 100644 (file)
@@ -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;
        }