mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Report binding in libnet failure message.
Andrew Bartlett
(This used to be commit def46f6852
)
This commit is contained in:
parent
4a2ba0c047
commit
359be70ed7
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user