summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_join.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 166b6a730d..353fd6a7b1 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -974,7 +974,6 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
talloc_steal(mem_ctx, cu.out.user_handle);
r->out.error_string = r2.samr_handle.out.error_string;
talloc_steal(mem_ctx, r2.samr_handle.out.error_string);
- r->out.realm = NULL;
r->out.kvno = 0;
r->out.server_dn_str = NULL;
talloc_free(tmp_ctx);
@@ -989,7 +988,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
return status;
}
- return NT_STATUS_OK;
+ return cu_status;
}
static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,