]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Avoid dereferencing nullptr while configuring bucket sync policy
authorSoumya Koduri <skoduri@redhat.com>
Thu, 26 May 2022 16:55:06 +0000 (22:25 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 6 Sep 2022 17:59:46 +0000 (23:29 +0530)
commit7019eef18323df73f261204a98bdfc081f2182ae
tree9567ef06318087161403c14c6593526a08caea75
parent6223ceed083f4c58a4873e006cb7be81c5d1bcf6
rgw: Avoid dereferencing nullptr while configuring bucket sync policy

While configuring bucket sync policy, in "rgw_sync_bucket_entities::set_bucket()",
there could be a case where in bucket doesnt contain any value but is still being
dereferenced. This commit fixes the same.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 86cf8275224536a7ca77eaf8a6e59951b3f25261)
src/rgw/rgw_sync_policy.cc