From: Pradosh Mohapatra <[email protected]> Signed-off-by: Pradosh Mohapatra <[email protected]> --- bgpd/bgp_nexthop.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index b2365c2..1cf2026 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -579,6 +579,9 @@ bgp_address_add (struct prefix *p) tmp.addr = p->u.prefix4; addr = hash_get (bgp_address_hash, &tmp, bgp_address_hash_alloc); + if (!addr) + return; + addr->refcnt++; } -- 1.9.1 _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
