mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 18:50:39 +00:00
Merge pull request #2198 from LabNConsulting/working/master/bgpd-nht-crash
bgpd: fix NHT free when nht_info is null (fixes crash)
This commit is contained in:
commit
29be7d92cc
@ -88,7 +88,7 @@ int bgp_find_nexthop(struct bgp_info *path, int connected)
|
|||||||
|
|
||||||
static void bgp_unlink_nexthop_check(struct bgp_nexthop_cache *bnc)
|
static void bgp_unlink_nexthop_check(struct bgp_nexthop_cache *bnc)
|
||||||
{
|
{
|
||||||
if (LIST_EMPTY(&(bnc->paths)) && !bnc->nht_info) {
|
if (LIST_EMPTY(&(bnc->paths)) && bnc->nht_info) {
|
||||||
if (BGP_DEBUG(nht, NHT)) {
|
if (BGP_DEBUG(nht, NHT)) {
|
||||||
char buf[PREFIX2STR_BUFFER];
|
char buf[PREFIX2STR_BUFFER];
|
||||||
zlog_debug("bgp_unlink_nexthop: freeing bnc %s",
|
zlog_debug("bgp_unlink_nexthop: freeing bnc %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user