]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket policy 31356/head
authorxxcs <silonghu@inspur.com>
Mon, 4 Nov 2019 12:29:46 +0000 (20:29 +0800)
committerxxcs <silonghu@inspur.com>
Mon, 4 Nov 2019 12:55:33 +0000 (20:55 +0800)
Fixes: https://tracker.ceph.com/issues/42616
Signed-off-by: GaryHyg <huygbj@inspur.com>
src/rgw/rgw_iam_policy.h

index 00048b4a7af0437b84131724a69d488567bcf4ac..c80258b8d8b29809eba4ccc8e97579e20bf7bcd8 100644 (file)
@@ -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;
     }