X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdict.c;h=8079f67a4bfea6787637266543f86e0bf365814a;hb=6bf9a58426774c07c35e39eb61fdaa80fda1e6a6;hp=a4ea0aac5a1e5685db813ccbe8c76e8cedc665f8;hpb=e040518aa15a29d3fbb6fafb764080997a9c9a71;p=freeradius.git diff --git a/src/lib/dict.c b/src/lib/dict.c index a4ea0aa..8079f67 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 (!flags.internal && (vendor == parent->vendor) && (parent->type != PW_TYPE_TLV)) { + if ((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;