mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
rgw: Fix the last policy use-after-free
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
parent
97d026dde6
commit
5353d95268
@ -700,8 +700,9 @@ bool ParseState::key(const char* s, size_t l) {
|
||||
if (w->kind == TokenKind::cond_op) {
|
||||
auto id = w->id;
|
||||
auto& t = pp->policy.statements.back();
|
||||
auto c_ife = cond_ifexists;
|
||||
pp->s.emplace_back(pp, cond_key);
|
||||
t.conditions.emplace_back(id, s, l, cond_ifexists);
|
||||
t.conditions.emplace_back(id, s, l, c_ife);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user