From: Alan T. DeKok Date: Fri, 25 Sep 2015 01:57:05 +0000 (-0400) Subject: Don't do tlv checks on 'internal' attributes X-Git-Tag: release_3_0_10~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e040518aa15a29d3fbb6fafb764080997a9c9a71;p=thirdparty%2Ffreeradius-server.git Don't do tlv checks on 'internal' attributes --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 8079f67a4bf..a4ea0aac5a1 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -777,7 +777,7 @@ int dict_addattr(char const *name, int attr, unsigned int vendor, PW_TYPE type, * Otherwise, dict_parent() has taken us from an Extended sub-attribute to * a *the* Extended attribute, whish isn't what we want here. */ - if ((vendor == parent->vendor) && (parent->type != PW_TYPE_TLV)) { + if (!flags.internal && (vendor == parent->vendor) && (parent->type != PW_TYPE_TLV)) { fr_strerror_printf("dict_addattr: Attribute %s has parent attribute %s which is not of type 'tlv'", name, parent->name); return -1;