Skip to content

Commit

Permalink
Merge pull request #31356 from xxcs/xxcs06
Browse files Browse the repository at this point in the history
rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket policy

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
  • Loading branch information
cbodley committed Jan 22, 2020
2 parents 47f9991 + f56e914 commit 3d00484
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 3d00484

Please sign in to comment.