From 3036a92bb2e04507f3dfc8e72c566edb33246197 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 (cherry picked from commit 2758ba1fb9645d2e552545b232de3d36a1f3fae5) --- 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 d16bff32b3d93..1c46c38774d87 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -6227,7 +6227,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.39.5