]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: avoid spamming bgp_accept() on bad vrf sock
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 22 May 2020 20:12:38 +0000 (16:12 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 31 May 2020 08:28:30 +0000 (04:28 -0400)
commit2f9db11bd8d97512386339926ecc91bfc601cd53
tree9280b0cf763a0ca6bb6069fef511249d72669ce9
parente0281c9f2f30e32f22d61be35d474427f2e4790d
bgpd: avoid spamming bgp_accept() on bad vrf sock

bgp_accept() gets called over and over again when a VRF device is
deleted out from under a bgp listener socket that is bound to it.
Prevent this by noting the error and cancelling ourselves, allowing the
vrf status code to clean up the mess when it receives word about the
change from Zebra.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_network.c