]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor.cc: fix condition that checks for unrecognized auth mode 31038/head
authorNeha Ojha <nojha@redhat.com>
Thu, 29 Aug 2019 17:37:24 +0000 (10:37 -0700)
committerNathan Cutler <ncutler@suse.com>
Mon, 21 Oct 2019 21:50:30 +0000 (23:50 +0200)
Introduced by 771682aad09

Fixes:https://tracker.ceph.com/issues/41429
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 2758ba1fb9645d2e552545b232de3d36a1f3fae5)

src/mon/Monitor.cc

index d16bff32b3d9313e2a8b85bdef5dc93163ef0968..1c46c38774d87b496301ccff602e42d065b1b292 100644 (file)
@@ -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;