]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Don't bother ref'ing ifp in zebra_pbr_rule
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 19:39:49 +0000 (15:39 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 19:39:49 +0000 (15:39 -0400)
commitb19d55d048f6a644629595da361df9e6d0674555
treeea01d5d386e823009c18f2f4873ba8bd976fb54b
parentb77a69bdc601133612d89cb5e389f014d3e68970
zebra: Don't bother ref'ing ifp in zebra_pbr_rule

If we only really use the ifp for the name, then
don't bother referencing the ifp. If that ifp is
freed, we don't expect zebra to handle the rules that
use it (that's pbrd's job), so it is going to be
pointing to unintialized memory when we decide to remove
that rule later. Thus, just keep the name in the data
and dont mess with pointer refs.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rule_netlink.c
zebra/zapi_msg.c
zebra/zebra_pbr.c
zebra/zebra_pbr.h