From: Arran Cudbard-Bell Date: Fri, 2 Jan 2015 19:54:09 +0000 (-0500) Subject: Only restrict attribute numbers for VSAs when processing unknown attribute strings X-Git-Tag: release_3_0_7~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=313111bfd5e86b7698395991f43a963936901724;p=thirdparty%2Ffreeradius-server.git Only restrict attribute numbers for VSAs when processing unknown attribute strings --- diff --git a/src/lib/dict.c b/src/lib/dict.c index d70996064c2..9db9062abb9 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -2924,7 +2924,7 @@ int dict_unknown_from_str(DICT_ATTR *da, char const *name) /* * Enforce a maximum value on the attribute number. */ - if (attr >= (unsigned) (1 << (dv_type << 3))) goto invalid; + if ((vendor > 0) && (attr >= (unsigned) (1 << (dv_type << 3)))) goto invalid; if (*p == '.') { if (dict_str2oid(p + 1, &attr, &vendor, 1) < 0) {