]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_nexthop.c
bgpd: prevent double address delete on shutdown
authorRakesh Garimella <rakesh.garimella@sophos.com>
Mon, 11 Mar 2013 12:38:31 +0000 (12:38 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 30 Jul 2013 18:27:50 +0000 (20:27 +0200)
commit9e47abd862f71847a85f330435c7b3a9b1f76099
tree375f9e63d4a1b206addb615a906f2f5608823612
parent397b5bded5654a31b4bd3b904f091fd3859aecf7
bgpd: prevent double address delete on shutdown

bgp_interface_down() and bgp_exit() both proceed to delete the address
from bgpd's interface representation, so the second call gets a NULL
result from the hash lookup and subsequently crashes.

Signed-off-by: Rakesh Garimella <rakesh.garimella@sophos.com>
[reformatted]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_nexthop.c