From e8165dd38088272a3b85981534c83a518a722d6a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 26 Aug 2017 08:40:34 -0400 Subject: [PATCH] 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 --- eigrpd/eigrp_update.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5