diff options
author | Kai Blin <kai@samba.org> | 2007-12-11 11:28:46 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:49:25 +0100 |
commit | cbefb1347482a0c9c91e73e5d3d2e9e8c7a8e555 (patch) | |
tree | 4fc6dd0cb598581464e577d33f676748fc348804 /source4 | |
parent | a6b4d4fe814c492a20b5880d1ce1b777a349b643 (diff) | |
download | samba-cbefb1347482a0c9c91e73e5d3d2e9e8c7a8e555.tar.gz samba-cbefb1347482a0c9c91e73e5d3d2e9e8c7a8e555.tar.bz2 samba-cbefb1347482a0c9c91e73e5d3d2e9e8c7a8e555.zip |
r26396: dcerpc: Fall back to peer_name() if target_hostname() is not set.
(This used to be commit 700887c7f1b874682a71daec2741b0329cded53c)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |