]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_flowspec_util.c
bgpd: Convert users of `rn->p` to use accessor function
[mirror_frr.git] / bgpd / bgp_flowspec_util.c
index 79d5268c7d0c1f73d171f6c590c8fa418688adbd..9d824a8641a6a01d5551fba034bd12ddbde7baee 100644 (file)
@@ -607,7 +607,8 @@ bool bgp_flowspec_get_first_nh(struct bgp *bgp, struct bgp_path_info *pi,
        struct bgp_pbr_entry_action *api_action;
 
        memset(&api, 0, sizeof(struct bgp_pbr_entry_main));
-       if (bgp_pbr_build_and_validate_entry(&rn->p, pi, &api) < 0)
+       if (bgp_pbr_build_and_validate_entry(bgp_node_get_prefix(rn), pi, &api)
+           < 0)
                return true;
        for (i = 0; i < api.action_num; i++) {
                api_action = &api.actions[i];