Skip to content

Commit

Permalink
mon: should not set isvalid = true when cephx_verify_authorizer retur…
Browse files Browse the repository at this point in the history
…n false

Fixes: ceph#13525
Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
  • Loading branch information
yangruifeng committed Oct 19, 2015
1 parent c55f8d4 commit c7f75b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon/Monitor.cc
Expand Up @@ -5004,9 +5004,9 @@ bool Monitor::ms_verify_authorizer(Connection *con, int peer_type,
CephXServiceTicketInfo auth_ticket_info;

if (authorizer_data.length()) {
int ret = cephx_verify_authorizer(g_ceph_context, &keyring, iter,
bool ret = cephx_verify_authorizer(g_ceph_context, &keyring, iter,
auth_ticket_info, authorizer_reply);
if (ret >= 0) {
if (ret) {
session_key = auth_ticket_info.session_key;
isvalid = true;
} else {
Expand Down

0 comments on commit c7f75b8

Please sign in to comment.