rpcrt4: Ignore the network address for ncalrpc in is_epm_destination_local.

The network address is ignored in the transport code, so it doesn't
make sense to take it into account here.
This commit is contained in:
Rob Shearman 2009-11-16 14:39:48 +00:00 committed by Alexandre Julliard
parent 36dae82a68
commit b49512ecaf
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ static inline BOOL is_epm_destination_local(RPC_BINDING_HANDLE handle)
const char *protseq = bind->Protseq;
const char *network_addr = bind->NetworkAddr;
return ((!strcmp(protseq, "ncalrpc") && !network_addr) ||
(!strcmp(protseq, "ncacn_np") &&
return (!strcmp(protseq, "ncalrpc") ||
(!strcmp(protseq, "ncacn_np") &&
(!network_addr || !strcmp(network_addr, "."))));
}