mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Kernel: Fix crash for merge paths on if no route is in BIRD
There was a missing check for a NULL return value. Also fixed an indenting error. Thanks to Radu Anghel for reporting it: https://bird.network.cz/pipermail/bird-users/2024-December/017977.html
This commit is contained in:
parent
e7bd976178
commit
b6caccfd45
@ -5265,7 +5265,7 @@ krt_export_net(struct channel *c, const net_addr *a, linpool *lp)
|
||||
if (c->ra_mode == RA_MERGED)
|
||||
{
|
||||
struct rt_export_feed *feed = rt_net_feed(c->table, a, NULL);
|
||||
if (!feed->count_routes)
|
||||
if (!feed || !feed->count_routes)
|
||||
return NULL;
|
||||
|
||||
if (!bmap_test(&c->export_accepted_map, feed->block[0].id))
|
||||
|
Loading…
Reference in New Issue
Block a user