diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-13 14:13:31 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-13 14:13:31 +1100 |
commit | 359be70ed7360bc19646d0f913288fd139353cd8 (patch) | |
tree | e07a8a8784856b57bf855052dfadd70a5a0910ec | |
parent | 4a2ba0c047249fa6f7f4c78313b3b221d9a5bcc7 (diff) | |
download | samba-359be70ed7360bc19646d0f913288fd139353cd8.tar.gz samba-359be70ed7360bc19646d0f913288fd139353cd8.tar.bz2 samba-359be70ed7360bc19646d0f913288fd139353cd8.zip |
Report binding in libnet failure message.
Andrew Bartlett
(This used to be commit def46f6852075e1efe2bb7c5a7cffa5defdbb4ee)
-rw-r--r-- | source4/libnet/libnet_rpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index 667f54c447..50cc1145d2 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -867,8 +867,11 @@ static NTSTATUS libnet_RpcConnectDCInfo_recv(struct composite_context *c, struct } else { if (s->r.out.error_string) { r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string); - } else { + } else if (r->in.binding == NULL) { r->out.error_string = talloc_asprintf(mem_ctx, "Connection to DC failed: %s", nt_errstr(status)); + } else { + r->out.error_string = talloc_asprintf(mem_ctx, "Connection to DC %s failed: %s", + r->in.binding, nt_errstr(status)); } } |