]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_lc_s3.cc
update sources to 12.2.7
[ceph.git] / ceph / src / rgw / rgw_lc_s3.cc
index 97a29342d11ee12aca6ceb02a0c5eeace05351ab..7fa3b8e1a05eed8c6038c14f70701deac9f70900 100644 (file)
@@ -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<LCRule_S3 *>(iter.get_next());
+  if (!rule)
+    return false;
   while (rule) {
     add_rule(rule);
     rule = static_cast<LCRule_S3 *>(iter.get_next());