summaryrefslogtreecommitdiff
path: root/src/mon/Monitor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mon/Monitor.cc')
-rw-r--r--src/mon/Monitor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc
index 4fc0c999340..e227bf823ab 100644
--- a/src/mon/Monitor.cc
+++ b/src/mon/Monitor.cc
@@ -2019,6 +2019,7 @@ void Monitor::handle_command(MMonCommand *m)
if (!_allowed_command(session, module, prefix, cmdmap)) {
dout(1) << __func__ << " access denied" << dendl;
reply_command(m, -EACCES, "access denied", 0);
+ return;
}
if (module == "mds") {