]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd: fix clang warning 1307/head
authorVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 22:12:01 +0000 (00:12 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 22:12:01 +0000 (00:12 +0200)
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 <vincent.jardin@6wind.com>
eigrpd/eigrp_filter.c

index 7b9e0de52542de62f7ce12f4c276bb3d90ff762a..b74127aa42c55272dbb139c892cacf499017a19f 100644 (file)
@@ -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]) {