]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Don't add/del from name tree if name isnt set
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 9 Oct 2019 23:35:46 +0000 (19:35 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 10 Oct 2019 00:09:49 +0000 (20:09 -0400)
commit9685b1e414118391825ad56faa8879d279eebeb6
tree88c36e39fa477288b15ac71b758785c6ed9293bc
parentdb8d54b0981ec5c642da708dcb188d5d6243a5cc
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