diff options
author | paco <paco@voltanet.io> | 2018-06-26 20:16:13 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-26 21:39:56 +0200 |
commit | 39050c7e0dea9070bb91af582a6f89cfdf2063ba (patch) | |
tree | fd92d944858cfae7266678ad5ef94fe21766bd54 /ospfd/ospf_route.c | |
parent | Merge pull request #2549 from pacovn/Coverity_1452317_Explicit_null_dereferenced (diff) | |
download | frr-39050c7e0dea9070bb91af582a6f89cfdf2063ba.tar.xz frr-39050c7e0dea9070bb91af582a6f89cfdf2063ba.zip |
lib ospfd: dead code (Coverity 1302503 1302502)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r-- | ospfd/ospf_route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index b964bbab7..b36f2f465 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -170,8 +170,8 @@ int ospf_route_match_same(struct route_table *rt, struct prefix_ipv4 *prefix, /* Check each path. */ for (n1 = listhead(or->paths), n2 = listhead(newor->paths); - n1 && n2; - n1 = listnextnode(n1), n2 = listnextnode(n2)) { + n1 && n2; n1 = listnextnode_unchecked(n1), + n2 = listnextnode_unchecked(n2)) { op = listgetdata(n1); newop = listgetdata(n2); |