From 0ef149652fd215df193a917bfdd2278145f6de43 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 18 May 2009 19:11:52 +0000 Subject: Block unsafe management methods only if clustering is enabled git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@776057 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/ClusterPlugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp') diff --git a/cpp/src/qpid/cluster/ClusterPlugin.cpp b/cpp/src/qpid/cluster/ClusterPlugin.cpp index 1bebbe7a43..cb1212505b 100644 --- a/cpp/src/qpid/cluster/ClusterPlugin.cpp +++ b/cpp/src/qpid/cluster/ClusterPlugin.cpp @@ -160,9 +160,10 @@ struct ClusterPlugin : public Plugin { void initialize(Plugin::Target& target) { Broker* broker = dynamic_cast(&target); - disallowManagementMethods(broker->getManagementAgent()); - if (broker && cluster) + if (broker && cluster) { + disallowManagementMethods(broker->getManagementAgent()); cluster->initialize(); + } } }; -- cgit v1.2.1