]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vrf.c
zebra: fix infinite loop when deleting non-default vrf
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 29 Apr 2017 17:15:11 +0000 (14:15 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 29 Apr 2017 17:25:04 +0000 (14:25 -0300)
commit06b57ec2a4b7ffdaf38748a42e0ecdeef993c79f
tree19ebe5ba406d420d7b47bf4a03e9f86bb395d037
parentfc25a6680d63b78f9c35d6f97908a74734f04df7
zebra: fix infinite loop when deleting non-default vrf

How to reproduce the bug:
% ip link add vrf-red type vrf table 10
% ip link set dev vrf-red up
% ip rule add oif vrf-red table 10
% ip rule add iif vrf-red table 10
% ip link add name lo1 type dummy
% ip link set dev lo1 up
% ip link set dev lo1 master vrf-red
% ip link del dev vrf-red
(zebra gets stuck in an infinite loop inside work_queue_run())

Regression introduced by commit 5a8dfcd8.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_vrf.c