diff options
author | G. Paul Ziemba <paulz@labn.net> | 2018-04-15 00:34:21 +0200 |
---|---|---|
committer | G. Paul Ziemba <paulz@labn.net> | 2018-04-15 00:34:21 +0200 |
commit | 84cc12071c403a529f82e05efab3631c9b014140 (patch) | |
tree | 0f8ed6a70ee2407bc2e8c0959fc68308be48e46d | |
parent | Merge pull request #2062 from chiragshah6/ospfv3_dev (diff) | |
download | frr-84cc12071c403a529f82e05efab3631c9b014140.tar.xz frr-84cc12071c403a529f82e05efab3631c9b014140.zip |
bgp/rfapi: fix rfapiNhlAddNodeRoutes SA issue
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
-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 d5208f696..392c87867 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 = |