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:
committed by
Stefan Metzmacher
parent
a6b4d4fe81
commit
cbefb13474
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user