cluster: Don't allow wildcards in endpoint names.

This commit is contained in:
Gunnar Beutner 2013-09-25 08:52:57 +02:00
parent 83ca372fa8
commit 28a6db4e81
1 changed files with 2 additions and 2 deletions

View File

@ -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;