]> 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:58:05 +0000 (23:28 +0530)
commitbb84fce4eae81e6c37cfc035f1d969649100b97c
tree0cfa9b8c3c5283cea8cc9d5bc356b4859b3aba9a
parentbaf2b17a1cfab24186a80b14a6497e79c204b774
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