]> granicus.if.org Git - icinga2/commitdiff
cluster: Don't allow wildcards in endpoint names.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 25 Sep 2013 06:52:57 +0000 (08:52 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 25 Sep 2013 06:52:57 +0000 (08:52 +0200)
components/cluster/clustercomponent.cpp

index 18063bc4b70e195838b64ce9298883ce87f639b1..2b1322a44c23657cb46db6ec9c2926878126891d 100644 (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;