s3-epmapper: Fix adding tcpip endpoints.
authorAndreas Schneider <asn@samba.org>
Tue, 5 Jul 2011 13:46:59 +0000 (15:46 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 13 Jul 2011 13:22:11 +0000 (15:22 +0200)
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jul 13 15:22:11 CEST 2011 on sn-devel-104

source3/rpc_server/epmapper/srv_epmapper.c

index 49f2c9ad0ee375589dcfca610a41978c665a80e2..0d3ed115f8933d3436301db77cc501570cb1c05a 100644 (file)
@@ -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;
 }