mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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:
commit
f25ead132b
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user