summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_auth.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_auth.cc')
-rw-r--r--src/rgw/rgw_auth.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_auth.cc b/src/rgw/rgw_auth.cc
index 290b9bb46b3..ac1ed8b75d6 100644
--- a/src/rgw/rgw_auth.cc
+++ b/src/rgw/rgw_auth.cc
@@ -505,12 +505,12 @@ rgw::auth::Strategy::apply(const DoutPrefixProvider *dpp, const rgw::auth::Strat
ldpp_dout(dpp, 5) << "Failed the auth strategy, reason="
<< result.get_reason() << dendl;
// Special handling for expired pre-signed URL
- if (result.get_reason() == ERR_PRESIGNED_URL_EXPIRED) {
+ if (result.get_reason() == -ERR_PRESIGNED_URL_EXPIRED) {
result = result_t::deny(-EPERM);
set_req_state_err(s, -EPERM, "The pre-signed URL has expired");
}
// Special handling for disabled presigned URL
- if (result.get_reason() == ERR_PRESIGNED_URL_DISABLED) {
+ if (result.get_reason() == -ERR_PRESIGNED_URL_DISABLED) {
result = result_t::deny(-EPERM);
set_req_state_err(s, -EPERM, "Presigned URLs are disabled by admin");
}