]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: use existing s->bucket in s3 website retarget() 42874/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 19 Aug 2021 19:01:08 +0000 (15:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 20 Aug 2021 19:56:09 +0000 (15:56 -0400)
commit2598e062d04d7fe4477aa096c19ebebfa77d19ea
tree39f73e23e0246f5aed53df45aff98f0a37aae4ca
parentf1cafa5cbec2e5708a40c39854ba202aa58a7e4c
rgw: use existing s->bucket in s3 website retarget()

we should have already looked up s->bucket and s->object during auth

since s->object may store a raw pointer to s->bucket before this,
overwriting s->bucket here would leave a dangling pointer and Object's
operator<<() would crash

Fixes: https://tracker.ceph.com/issues/51491
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_s3.cc