]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Allow smaller uint types when calculating IPv4 prefix"
authorNick Porter <nick@portercomputing.co.uk>
Thu, 12 Sep 2024 07:57:48 +0000 (08:57 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 12 Sep 2024 07:57:48 +0000 (08:57 +0100)
This reverts commit b0d9e73d9c97202f941717b7f0c63a8a132daf59.

Incorrect interpretation of intent - the uint arg is a netmask
so should be 32 bits

src/lib/util/calc.c

index ea7ce18062669af322b54d1759fb92bdc343890d..9b0246b980dba62822437780560b0a9d19d98171 100644 (file)
@@ -79,8 +79,6 @@ static const fr_type_t upcast_op[FR_TYPE_MAX + 1][FR_TYPE_MAX + 1] = {
                /*
                 *      ipaddr + int --> prefix (generally only "and")
                 */
-               [FR_TYPE_UINT8]  =  FR_TYPE_IPV4_PREFIX,
-               [FR_TYPE_UINT16] =  FR_TYPE_IPV4_PREFIX,
                [FR_TYPE_UINT32] =  FR_TYPE_IPV4_PREFIX,
 
                /*