Skip to content

Commit

Permalink
rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket …
Browse files Browse the repository at this point in the history
…policy

Fixes: https://tracker.ceph.com/issues/42614
Signed-off-by: GaryHyg <huygbj@inspur.com>
  • Loading branch information
xxcs committed Nov 4, 2019
1 parent 8ece362 commit 27d4423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_iam_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ struct Condition {
ceph::bufferlist bin;

try {
base64.decode_base64(bin);
bin.decode_base64(base64);
} catch (const ceph::buffer::malformed_input& e) {
return boost::none;
}
Expand Down

0 comments on commit 27d4423

Please sign in to comment.