diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-26 08:40:34 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-26 08:52:59 -0400 | 
| commit | e8165dd38088272a3b85981534c83a518a722d6a (patch) | |
| tree | 31b06cd8113241eccee95c137663bae3dcca5dd4 /eigrpd/eigrp_update.c | |
| parent | c3f779dc1ab632b1ba74bf16c39dc2f18e6187bc (diff) | |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_update.c')
| -rw-r--r-- | eigrpd/eigrp_update.c | 6 | 
1 files 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  | 
