diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-15 11:25:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-15 11:25:43 -0400 |
| commit | 754964258c4e4f331a4a31bcedce4f70e8cf8e59 (patch) | |
| tree | 0f8ed6a70ee2407bc2e8c0959fc68308be48e46d | |
| parent | b667cbc63808b2c1137119326226f34810f4c7e4 (diff) | |
| parent | 84cc12071c403a529f82e05efab3631c9b014140 (diff) | |
Merge pull request #2068 from LabNConsulting/working/master/rfapi-sa
bgp/rfapi: fix rfapiNhlAddNodeRoutes SA issue
| -rw-r--r-- | bgpd/rfapi/rfapi_import.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index d5208f6966..392c878675 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -1543,10 +1543,15 @@ static int rfapiNhlAddNodeRoutes( int count = 0; int is_l2 = (rn->p.family == AF_ETHERNET); - if (rfapiRibFTDFilterRecentPrefix( - (struct rfapi_descriptor *)(rfd_rib_node->table->info), rn, - pfx_target_original)) { - return 0; + if (rfd_rib_node && rfd_rib_node->table && rfd_rib_node->table->info) { + struct rfapi_descriptor *rfd; + + rfd = (struct rfapi_descriptor *)(rfd_rib_node->table->info); + + if (rfapiRibFTDFilterRecentPrefix( + rfd, rn, pfx_target_original)) + + return 0; } seen_nexthops = |
