From: Ilsoo Byun Date: Mon, 2 Nov 2020 07:10:44 +0000 (+0900) Subject: rgw: fix invalid payload issue when serving s3website error page X-Git-Tag: v17.0.0~578^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f3df3d3763c1d50cd734f4d73055454d1b64f978;p=ceph.git rgw: fix invalid payload issue when serving s3website error page Fixes: https://tracker.ceph.com/issues/48064 Signed-off-by: Ilsoo Byun --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index e61327e34c1ef..3a6e52b507c88 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -5100,7 +5100,7 @@ int RGWHandler_REST_S3Website::error_handler(int err_no, On failure, we need the double-error handler */ new_err_no = RGWHandler_REST_S3Website::serve_errordoc(http_error_code, s->bucket->get_info().website_conf.error_doc, y); - if (new_err_no && new_err_no != -1) { + if (new_err_no != -1) { err_no = new_err_no; } } else {