summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-07-05 15:46:59 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-07-13 15:22:11 +0200
commit5e0ff955ad38b9ead0b45334333bbe0572fd2bcc (patch)
tree5d1ce6d23744eec5ad222d4727b48e8be0374a08
parentf97bdebbbe29c896524e7a0a68296f2d4709364a (diff)
downloadsamba-5e0ff955ad38b9ead0b45334333bbe0572fd2bcc.tar.gz
samba-5e0ff955ad38b9ead0b45334333bbe0572fd2bcc.tar.bz2
samba-5e0ff955ad38b9ead0b45334333bbe0572fd2bcc.zip
s3-epmapper: Fix adding tcpip endpoints.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jul 13 15:22:11 CEST 2011 on sn-devel-104
-rw-r--r--source3/rpc_server/epmapper/srv_epmapper.c8
1 files changed, 8 insertions, 0 deletions
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;
}