]> git.puffer.fish Git - mirror/frr.git/commit
lib: Don't add/del from name tree if name isnt set 5157/head
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 9 Oct 2019 23:35:46 +0000 (19:35 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 21:19:12 +0000 (17:19 -0400)
commit38152a1141cdcb90e062c85a122fc37b8fad8308
treef2ddb9c916e5c36e93ade2c59746e20184e949e3
parent3d231b2d7a041b90b522200aa148effc8deeafb4
lib: Don't add/del from name tree if name isnt set

If the name has not been set yet (we were only passed the
ifindex in some cases like with master/slave timings) then
do not add/del it from the ifname rb tree on the vrf struct.

Doing so causes duplicate entries on the tree and infinte loops
can happen when iterating over it.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/if.c