]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
0 is OK for untagged attributes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 8 Jan 2018 16:21:44 +0000 (11:21 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 8 Jan 2018 16:21:44 +0000 (11:21 -0500)
src/main/tmpl.c

index 67afd5ad647b3cd1c8f87b241b3b23f32432421c..914459cdc08634f2cba0216a232ccba0082e3897 100644 (file)
@@ -2416,7 +2416,7 @@ void tmpl_verify(char const *file, int line, vp_tmpl_t const *vpt)
                        fr_dict_attr_t const *da;
 
                        if (!vpt->tmpl_da->flags.has_tag &&
-                           TAG_VALID_ZERO(vpt->tmpl_tag)) {
+                           TAG_VALID(vpt->tmpl_tag)) {
                                FR_FAULT_LOG("CONSISTENCY CHECK FAILED %s[%u]: TMPL_TYPE_ATTR "
                                             "da is marked as not having a tag, but the template has a tag",
                                             file, line);