]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
templates should not create TLV types
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jun 2015 19:08:36 +0000 (15:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jun 2015 19:08:36 +0000 (15:08 -0400)
src/main/tmpl.c

index 079ad1017dc4553971ea004cfd366d899064a813..130cacb2a163e8b493dab7fa093ee7014f87b90c 100644 (file)
@@ -2300,6 +2300,11 @@ void tmpl_verify(char const *file, int line, vp_tmpl_t const *vpt)
                        break;
 
                case PW_TYPE_TLV:
+                       FR_FAULT_LOG("CONSISTENCY CHECK FAILED %s[%u]: TMPL_TYPE_DATA is of type TLV",
+                                    file, line);
+                       fr_assert(0);
+                       fr_exit_now(1);
+
                case PW_TYPE_OCTETS:
                        break;