Skip to content

Commit

Permalink
crimson/mon: pass cct to verify_authorizer()
Browse files Browse the repository at this point in the history
CephxAuthorizeHandler::verify_authorizer() uses it for querying config
and for a RNG, so we have to pass it a CephContext which has `_conf` and
`random()`.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Apr 28, 2019
1 parent 4cef78a commit e9dc950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crimson/mon/MonClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ int Client::handle_auth_request(ceph::net::ConnectionRef con,
uint64_t global_id;
AuthCapsInfo caps_info;
bool is_valid = ah->verify_authorizer(
nullptr,
&cct,
&active_con->get_keys(),
payload,
auth_meta->get_connection_secret_length(),
Expand Down

0 comments on commit e9dc950

Please sign in to comment.