Skip to content

Commit

Permalink
Merge pull request ceph#43071 from pritha-srivastava/wip-rgw-sts-op-logs
Browse files Browse the repository at this point in the history
rgw/sts: add check for s->auth.identity pointer
  • Loading branch information
mattbenjamin authored Sep 17, 2021
2 parents 19ecb52 + cdb7162 commit ca49104
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rgw/rgw_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ int rgw_log_op(rgw::sal::Store* store, RGWREST* const rest, struct req_state *s,

entry.op = op_name;

entry.identity_type = s->auth.identity->get_identity_type();
if (s->auth.identity) {
entry.identity_type = s->auth.identity->get_identity_type();
} else {
entry.identity_type = TYPE_NONE;
}

if (! s->token_claims.empty()) {
entry.token_claims = std::move(s->token_claims);
Expand Down

0 comments on commit ca49104

Please sign in to comment.