Merge pull request #69084 from linuxbox2/wip-76790

rgwlc: fix a likely null dereference in LCObjsLister::get_obj()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
J. Eric Ivancich 2026-06-25 10:09:27 -04:00 committed by GitHub
commit f25ead132b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -527,6 +527,9 @@ public:
}
}
delay(dpp);
if (obj_iter == list_results.objs.end()) {
return false;
}
}
if (obj_iter->key.name == pre_obj.key.name) {
@ -537,7 +540,7 @@ public:
/* returning address of entry in objs */
*obj = &(*obj_iter);
return obj_iter != list_results.objs.end();
return true;
}
rgw_bucket_dir_entry get_prev_obj() {