r20964: Show the domain name we figured out, rather than a null pointer (in
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 Jan 2007 01:33:31 +0000 (01:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:44:04 +0000 (14:44 -0500)
some error cases)

Andrew Bartlett
(This used to be commit 4195839d1a6102d7c6ae17c1b1db0418c99c9241)

source4/libnet/libnet_join.c

index e2c2e99d1167694b7786cea68cea5d23b478d164..a40c8607bf037e8529e2053ecb6113ea2c7f68e7 100644 (file)
@@ -117,7 +117,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J
        if (!NT_STATUS_IS_OK(status)) {
                r->out.error_string = talloc_asprintf(r,
                                        "Connection to DRSUAPI pipe of PDC of domain '%s' failed: %s",
-                                       r->in.domain_name,
+                                       r->out.domain_name,
                                        nt_errstr(status));
                talloc_free(tmp_ctx);
                return status;