]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
There's no need to limit protocol numbers to 255.
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 20:58:18 +0000 (15:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 21:14:19 +0000 (16:14 -0500)
The attribute number limit has long since been removed.

src/lib/util/dict_tokenize.c

index e3538ef29683ee83edb61649580459e10219a72c..d32d0fe2cac00a1baeaf61c259936ce1e671c6ef 100644 (file)
@@ -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;
        }