From: Pritha Srivastava Date: Thu, 29 Jun 2017 05:39:18 +0000 (+0530) Subject: rgw: Correcting the condition in ceph_assert while parsing an AWS Principal. X-Git-Tag: v12.1.1~126^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9450abcd0c6b7929ea7bf31321d7e70c7f80901a;p=ceph.git rgw: Correcting the condition in ceph_assert while parsing an AWS Principal. Signed-off-by: Pritha Srivastava --- 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),