]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
this should be nested, too
authorAlan T. DeKok <aland@freeradius.org>
Sat, 2 Sep 2023 13:37:55 +0000 (09:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Sep 2023 13:37:55 +0000 (09:37 -0400)
src/modules/rlm_dhcpv4/rlm_dhcpv4.c

index e6bb02cedd9461b3c1b9b6bbc17e791a27920eaa..87a19b59a8aae8cceb909fe8821b5aa36fd67dc1 100644 (file)
@@ -263,7 +263,7 @@ static unlang_action_t CC_HINT(nonnull) mod_process(rlm_rcode_t *p_result, modul
        /*
         *      Get the destination address / port, and unicast it there.
         */
-       vp = fr_pair_find_by_da(&request->control_pairs, NULL, attr_net_dst_ip);
+       vp = fr_pair_find_by_da_nested(&request->control_pairs, NULL, attr_net_dst_ip);
        if (!vp || (vp->vp_ip.af != AF_INET)) {
                RDEBUG("No &control.Net.Dst.IP, cannot relay packet");
                RETURN_MODULE_NOOP;