mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
pbrd: remove pbr-policy resource leak
Removing a non-existent pbr-policy caused a pbr_interface to leak. Coverity #1467829 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
5f504f14a9
commit
d64169679f
@ -313,10 +313,11 @@ DEFPY (pbr_policy,
|
|||||||
pbrm = pbrm_find(mapname);
|
pbrm = pbrm_find(mapname);
|
||||||
|
|
||||||
if (!pbr_ifp) {
|
if (!pbr_ifp) {
|
||||||
/*
|
/* we don't want one and we don't have one, so... */
|
||||||
* Some one could have fat fingered the interface
|
if (no)
|
||||||
* name
|
return CMD_SUCCESS;
|
||||||
*/
|
|
||||||
|
/* Some one could have fat fingered the interface name */
|
||||||
pbr_ifp = pbr_if_new(ifp);
|
pbr_ifp = pbr_if_new(ifp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user