X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Frgw%2Frgw_lc_s3.cc;h=7fa3b8e1a05eed8c6038c14f70701deac9f70900;hb=28e407b858acd3bddc89f68583571f771bb42e46;hp=97a29342d11ee12aca6ceb02a0c5eeace05351ab;hpb=dfcb7b53b2e4fcd2a5af0240d4975adc711ab96e;p=ceph.git diff --git a/ceph/src/rgw/rgw_lc_s3.cc b/ceph/src/rgw/rgw_lc_s3.cc index 97a29342d..7fa3b8e1a 100644 --- a/ceph/src/rgw/rgw_lc_s3.cc +++ b/ceph/src/rgw/rgw_lc_s3.cc @@ -60,6 +60,8 @@ bool LCMPExpiration_S3::xml_end(const char *el) { bool RGWLifecycleConfiguration_S3::xml_end(const char *el) { XMLObjIter iter = find("Rule"); LCRule_S3 *rule = static_cast(iter.get_next()); + if (!rule) + return false; while (rule) { add_rule(rule); rule = static_cast(iter.get_next());