From 85bbc95dc3f3fafde75277dea079b9c87c227881 Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Mon, 9 Oct 2017 00:12:01 +0200 Subject: [PATCH] eigrpd: fix clang warning ei shall never be NULL once we do the lookup. If it is NULL bad things could happen. For instance ei->t_distribute may not be a valid reference. Signed-off-by: Vincent Jardin --- eigrpd/eigrp_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/eigrpd/eigrp_filter.c b/eigrpd/eigrp_filter.c index 7b9e0de525..b74127aa42 100644 --- a/eigrpd/eigrp_filter.c +++ b/eigrpd/eigrp_filter.c @@ -187,6 +187,7 @@ void eigrp_distribute_update(struct distribute *dist) break; } } + assert(ei != NULL); /* Access-list for interface in */ if (dist->list[DISTRIBUTE_V4_IN]) { -- 2.39.5