diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2017-04-25 07:32:23 +0200 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2017-04-25 21:52:04 +0200 |
commit | 1131c2eb3b04fad3b86a5df8d551419d928dc669 (patch) | |
tree | c67cd999718e99b26f39a6d9ecef5bbd76675777 /pimd/pim_nht.c | |
parent | pimd: Fix WG/SGRpt & WG J/P processing (diff) | |
download | frr-1131c2eb3b04fad3b86a5df8d551419d928dc669.tar.xz frr-1131c2eb3b04fad3b86a5df8d551419d928dc669.zip |
pimd: fix pimd crashes around pim rpf
During neighbor down event, all upstream entries rpf lookup may result
into nhop address with 0.0.0.0 and rpf interface info being NULL.
Put preventin check where rpf interface info is accessed.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r-- | pimd/pim_nht.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index de3ea2daa..98c98cdf2 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -665,7 +665,10 @@ pim_ecmp_nexthop_search (struct pim_nexthop_cache *pnc, } - return 0; + if (found) + return 0; + else + return -1; } /* This API is used to parse Registered address nexthop update coming from Zebra */ |