ldpp_dout(this, 1) << "failed to decode RGW_ATTR_CRYPT_PARTS" << dendl;
return -EIO;
}
- } else {
+ } else if (manifest_bl) {
// otherwise, we read the part lengths from the manifest
res = RGWGetObj_BlockDecrypt::read_manifest_parts(this, *manifest_bl,
parts_len);
ldpp_dout(this, 1) << "failed to decode RGW_ATTR_CRYPT_PARTS" << dendl;
return -EIO;
}
- } else {
+ } else if (manifest_bl) {
// otherwise, we read the part lengths from the manifest
res = RGWGetObj_BlockDecrypt::read_manifest_parts(this, *manifest_bl,
parts_len);