From 9450abcd0c6b7929ea7bf31321d7e70c7f80901a Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Thu, 29 Jun 2017 11:09:18 +0530 Subject: [PATCH] rgw: Correcting the condition in ceph_assert while parsing an AWS Principal. Signed-off-by: Pritha Srivastava --- src/rgw/rgw_iam_policy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_iam_policy.cc b/src/rgw/rgw_iam_policy.cc index d7556e3655a..c78ae43fe31 100644 --- a/src/rgw/rgw_iam_policy.cc +++ b/src/rgw/rgw_iam_policy.cc @@ -719,7 +719,7 @@ static optional parse_principal(CephContext* cct, TokenID t, ECMAScript | optimize); smatch match; if (regex_match(a->resource, match, rx)) { - ceph_assert(match.size() == 2); + ceph_assert(match.size() == 3); if (match[1] == "user") { return Principal::user(std::move(a->account), -- 2.47.3