From 4f4060f6abbfa004e0eb63b7c447776cc74c8d66 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 8 Sep 2018 20:16:59 +0200 Subject: *: fix clang-6 SA warnings I don't see these in CI, but my local clang-6 does emit warnings for these. Signed-off-by: David Lamparter --- ospf6d/ospf6_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospf6d/ospf6_route.c') diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index a099eead4..021e825ae 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -732,7 +732,7 @@ struct ospf6_route *ospf6_route_add(struct ospf6_route *route, route->next = next; if (node->info == next) { - assert(next->rnode == node); + assert(next && next->rnode == node); node->info = route; UNSET_FLAG(next->flag, OSPF6_ROUTE_BEST); SET_FLAG(route->flag, OSPF6_ROUTE_BEST); -- cgit v1.2.3