]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket policy 32832/head
authorxxcs <silonghu@inspur.com>
Mon, 4 Nov 2019 12:29:46 +0000 (20:29 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 15:59:43 +0000 (16:59 +0100)
Fixes: https://tracker.ceph.com/issues/42616
Signed-off-by: GaryHyg <huygbj@inspur.com>
(cherry picked from commit f56e9146f86f107bbf245700874ea849c57b5fef)

src/rgw/rgw_iam_policy.h

index cc6453acd9b0a752f56fa5c0373c245685b8fe13..9e0665d89a3d9f8982195aef0a819aaf5f864419 100644 (file)
@@ -325,7 +325,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;
     }