From: Alan T. DeKok Date: Fri, 24 Feb 2023 20:58:18 +0000 (-0500) Subject: There's no need to limit protocol numbers to 255. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bec9aa3efa0fda21feb0def2d93a2c8297e214;p=thirdparty%2Ffreeradius-server.git There's no need to limit protocol numbers to 255. The attribute number limit has long since been removed. --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index e3538ef2968..d32d0fe2cac 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -1781,7 +1781,7 @@ static int dict_read_process_protocol(char **argv, int argc) /* * 255 protocols FR_TYPE_GROUP type_size hack */ - if ((value == 0) || (value > 255)) { + if (!value) { fr_strerror_printf("Invalid value '%u' following PROTOCOL", value); return -1; }