1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r26394: dcerpc: Use target_hostname() instead of peer_name() in dcerpc_server_name()

This commit is contained in:
Kai Blin 2007-12-11 10:47:36 +01:00 committed by Stefan Metzmacher
parent 55c60a3743
commit c5196831d5

View File

@ -1521,10 +1521,10 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p,
*/
const char *dcerpc_server_name(struct dcerpc_pipe *p)
{
if (!p->conn->transport.peer_name) {
if (!p->conn->transport.target_hostname) {
return "";
}
return p->conn->transport.peer_name(p->conn);
return p->conn->transport.target_hostname(p->conn);
}