From cbefb1347482a0c9c91e73e5d3d2e9e8c7a8e555 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 11 Dec 2007 11:28:46 +0100 Subject: r26396: dcerpc: Fall back to peer_name() if target_hostname() is not set. (This used to be commit 700887c7f1b874682a71daec2741b0329cded53c) --- source4/librpc/rpc/dcerpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 32f93254e5..432cd09094 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -1522,7 +1522,10 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p, const char *dcerpc_server_name(struct dcerpc_pipe *p) { if (!p->conn->transport.target_hostname) { - return ""; + if (!p->conn->transport.peer_name) { + return ""; + } + return p->conn->transport.peer_name(p->conn); } return p->conn->transport.target_hostname(p->conn); } -- cgit