-static const char rcsid[] =
- "$Id: print-radius.c,v 1.12 2002-06-11 17:08:55 itojun Exp $";
+static const char rcsid[] _U_ =
+ "$Id: print-radius.c,v 1.19.2.3 2004-01-07 07:53:17 hannes Exp $";
const char **subtypes; /* Standard Values (if any) */
u_char siz_subtypes; /* Size of total standard values */
u_char first_subtype; /* First standard value is 0 or 1 */
const char **subtypes; /* Standard Values (if any) */
u_char siz_subtypes; /* Size of total standard values */
u_char first_subtype; /* First standard value is 0 or 1 */
- if ( data_value <= (attr_type[attr_code].siz_subtypes - 1 +
- attr_type[attr_code].first_subtype) )
+ if ( data_value <= (u_int32_t)(attr_type[attr_code].siz_subtypes - 1 +
+ attr_type[attr_code].first_subtype) &&
+ data_value >= attr_type[attr_code].first_subtype )
radius_print(const u_char *dat, u_int length)
{
register const struct radius_hdr *rad;
radius_print(const u_char *dat, u_int length)
{
register const struct radius_hdr *rad;