]> git.proxmox.com Git - mirror_frr.git/commitdiff
eigrpd: Fix access/prefix list handling in updates
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 26 Aug 2017 12:40:34 +0000 (08:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 26 Aug 2017 12:52:59 +0000 (08:52 -0400)
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>
eigrpd/eigrp_update.c

index d6a1134124f581adbdbfa44af97e9a56189753ae..afe3814597fff8627bbf78650a316d2e68a5e0d4 100644 (file)
@@ -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