From: Alan T. DeKok Date: Fri, 9 Apr 2021 14:51:33 +0000 (-0400) Subject: allow empty groups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bc48164bd4158fac40e1b32f666e843e9941a9f;p=thirdparty%2Ffreeradius-server.git allow empty groups --- diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index df2ad13646..ae30135c17 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -316,6 +316,14 @@ static ssize_t fr_pair_list_afrom_substr(TALLOC_CTX *ctx, fr_dict_attr_t const * break; } + /* + * Stop at '}', too, if we're inside of a group. + */ + if ((depth > 0) && (*p == '}')) { + last_token = T_RCBRACE; + break; + } + /* * Hacky hack... */