From: Donald Sharp Date: Sat, 26 Aug 2017 12:40:34 +0000 (-0400) Subject: eigrpd: Fix access/prefix list handling in updates X-Git-Tag: frr-4.0-dev~343^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e8165dd38088272a3b85981534c83a518a722d6a;p=mirror%2Ffrr.git eigrpd: Fix access/prefix list handling in updates Use eigrp pointer passed in instead of looking it up, additionally we should actually look at the correct access list. Signed-off-by: Donald Sharp --- diff --git a/eigrpd/eigrp_update.c b/eigrpd/eigrp_update.c index d6a1134124..afe3814597 100644 --- a/eigrpd/eigrp_update.c +++ b/eigrpd/eigrp_update.c @@ -158,7 +158,6 @@ void eigrp_update_receive(struct eigrp *eigrp, struct ip *iph, struct access_list *alist; struct prefix_list *plist; struct prefix dest_addr; - struct eigrp *e; u_char graceful_restart; u_char graceful_restart_final; struct list *nbr_prefixes = NULL; @@ -328,13 +327,12 @@ void eigrp_update_receive(struct eigrp *eigrp, struct ip *iph, /* * Filtering */ - e = eigrp_lookup(); /* * Check if there is any access-list on * interface (IN direction) * and set distance to max */ - alist = ei->list[EIGRP_FILTER_IN]; + alist = eigrp->list[EIGRP_FILTER_IN]; /* Check if access-list fits */ if (alist @@ -350,7 +348,7 @@ void eigrp_update_receive(struct eigrp *eigrp, struct ip *iph, eigrp, ne); } - plist = e->prefix[EIGRP_FILTER_IN]; + plist = eigrp->prefix[EIGRP_FILTER_IN]; /* Check if prefix-list fits */ if (plist