]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Avoid dereferencing nullptr while configuring bucket sync policy 46403/head
authorSoumya Koduri <skoduri@redhat.com>
Thu, 26 May 2022 16:55:06 +0000 (22:25 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 26 May 2022 16:55:06 +0000 (22:25 +0530)
commit86cf8275224536a7ca77eaf8a6e59951b3f25261
treefcc324941a0beae899017bc4d23c43366c7c2fde
parent805d2320b32f02da710847fb822791bfe72fedf8
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>
src/rgw/rgw_sync_policy.cc