]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set correct prefix for IPv4 address
authorNick Porter <nick@portercomputing.co.uk>
Wed, 11 Sep 2024 19:49:47 +0000 (20:49 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 11 Sep 2024 20:10:45 +0000 (21:10 +0100)
src/lib/util/calc.c

index f09bd928f46f6bb114fb76b50d69e0cac54ad958..9b0246b980dba62822437780560b0a9d19d98171 100644 (file)
@@ -1256,7 +1256,7 @@ static int calc_ipv4_addr(UNUSED TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_
 
                dst->vb_ip.af = AF_INET;
                dst->vb_ip.addr.v4.s_addr = htonl(ntohl(a->vb_ip.addr.v4.s_addr) | b->vb_uint32);
-               dst->vb_ip.prefix = 0;
+               dst->vb_ip.prefix = 32;
                break;
 
        default: