]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
make DHCPv4 use flat or nested attributes
authorJorge Pereira <jpereira@freeradius.org>
Fri, 26 May 2023 01:54:26 +0000 (22:54 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 29 May 2023 21:02:48 +0000 (16:02 -0500)
src/protocols/dhcpv4/packet.c

index 801503117ae9e40e0bbeb9cabe197b4d9ab37951..1399156786b49fdc9e4eae95b354c68e60bf7e10 100644 (file)
@@ -318,7 +318,7 @@ int fr_dhcpv4_decode(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data,
        /*
         *      First look for Relay-Link-Selection
         */
-       netaddr = fr_pair_find_by_da(&tmp, NULL, attr_dhcp_relay_link_selection);
+       netaddr = fr_pair_find_by_da_nested(&tmp, NULL, attr_dhcp_relay_link_selection);
        if (!netaddr) {
                /*
                 *      Next try Subnet-Selection-Option