From 5e0ff955ad38b9ead0b45334333bbe0572fd2bcc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 5 Jul 2011 15:46:59 +0200 Subject: s3-epmapper: Fix adding tcpip endpoints. Autobuild-User: Andreas Schneider Autobuild-Date: Wed Jul 13 15:22:11 CEST 2011 on sn-devel-104 --- source3/rpc_server/epmapper/srv_epmapper.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c index 49f2c9ad0e..0d3ed115f8 100644 --- a/source3/rpc_server/epmapper/srv_epmapper.c +++ b/source3/rpc_server/epmapper/srv_epmapper.c @@ -142,6 +142,14 @@ static bool endpoints_match(const struct dcerpc_binding *ep1, return false; } + if (!ep1->host || !ep2->host) { + return ep1->endpoint == ep2->endpoint; + } + + if (!strequal(ep1->host, ep2->host)) { + return false; + } + return true; } -- cgit