From: Alan T. DeKok Date: Mon, 15 Jun 2015 19:08:36 +0000 (-0400) Subject: templates should not create TLV types X-Git-Tag: release_3_0_9~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dcd24281d5b1907efa786b4f5bb5c88cf76e372;p=thirdparty%2Ffreeradius-server.git templates should not create TLV types --- diff --git a/src/main/tmpl.c b/src/main/tmpl.c index 079ad1017dc..130cacb2a16 100644 --- a/src/main/tmpl.c +++ b/src/main/tmpl.c @@ -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;