From 28a6db4e81098e86370ea55246fd93df67daf2fd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 25 Sep 2013 08:52:57 +0200 Subject: [PATCH] cluster: Don't allow wildcards in endpoint names. --- components/cluster/clustercomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 18063bc4b..2b1322a44 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -1386,7 +1386,7 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction if (acceptConfig) { ObjectLock olock(acceptConfig); BOOST_FOREACH(const String& pattern, acceptConfig) { - if (Utility::Match(pattern, sender->GetName())) { + if (pattern == sender->GetName()) { accept = true; break; } @@ -1485,7 +1485,7 @@ bool ClusterComponent::IsAuthority(const DynamicObject::Ptr& object, const Strin if (authorities) { ObjectLock olock(authorities); BOOST_FOREACH(const String& authority, authorities) { - if (Utility::Match(authority, endpoint->GetName())) { + if (authority == endpoint->GetName()) { match = true; break; -- 2.40.0