From: Vincent JARDIN Date: Sun, 8 Oct 2017 22:12:01 +0000 (+0200) Subject: eigrpd: fix clang warning X-Git-Tag: frr-4.0-dev~233^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=85bbc95dc3f3fafde75277dea079b9c87c227881;p=mirror%2Ffrr.git 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 --- 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]) {