1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r26396: dcerpc: Fall back to peer_name() if target_hostname() is not set.

(This used to be commit 700887c7f1)
This commit is contained in:
Kai Blin
2007-12-11 11:28:46 +01:00
committed by Stefan Metzmacher
parent a6b4d4fe81
commit cbefb13474

View File

@ -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);
}