diff options
| author | Ted Ross <tross@apache.org> | 2009-05-18 19:11:52 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-05-18 19:11:52 +0000 |
| commit | 913ba3dcc10d79d722a543dea6cf9cc83aceacce (patch) | |
| tree | c2208669655ba51a6a4d3ad2050e59b05859e7b4 /qpid/cpp/src | |
| parent | cfe510cedfe96e63fac902b192babcd74d486724 (diff) | |
| download | qpid-python-913ba3dcc10d79d722a543dea6cf9cc83aceacce.tar.gz | |
Block unsafe management methods only if clustering is enabled
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@776057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp b/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp index 1bebbe7a43..cb1212505b 100644 --- a/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp +++ b/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp @@ -160,9 +160,10 @@ struct ClusterPlugin : public Plugin { void initialize(Plugin::Target& target) { Broker* broker = dynamic_cast<Broker*>(&target); - disallowManagementMethods(broker->getManagementAgent()); - if (broker && cluster) + if (broker && cluster) { + disallowManagementMethods(broker->getManagementAgent()); cluster->initialize(); + } } }; |
