From 2758ba1fb9645d2e552545b232de3d36a1f3fae5 Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Thu, 29 Aug 2019 10:37:24 -0700 Subject: [PATCH] mon/Monitor.cc: fix condition that checks for unrecognized auth mode Introduced by 771682aad09 Fixes:https://tracker.ceph.com/issues/41429 Signed-off-by: Neha Ojha --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 0d36fb1b091d..2a1920dbd7d8 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -6217,7 +6217,7 @@ int Monitor::handle_auth_request( } dout(10) << __func__ << " bad authorizer on " << con << dendl; return -EACCES; - } else if (auth_meta->auth_mode < AUTH_MODE_MON && + } else if (auth_meta->auth_mode < AUTH_MODE_MON || auth_meta->auth_mode > AUTH_MODE_MON_MAX) { derr << __func__ << " unrecognized auth mode " << auth_meta->auth_mode << dendl; -- 2.47.3