summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index b86780276b..9551f26d80 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -3681,14 +3681,14 @@ static void rib_meta_queue_free(struct meta_queue *mq, struct list *l,
static void early_route_meta_queue_free(struct meta_queue *mq, struct list *l,
struct zebra_vrf *zvrf)
{
- struct zebra_early_route *zer;
+ struct zebra_early_route *ere;
struct listnode *node, *nnode;
- for (ALL_LIST_ELEMENTS(l, node, nnode, zer)) {
- if (zvrf && zer->re->vrf_id != zvrf->vrf->vrf_id)
+ for (ALL_LIST_ELEMENTS(l, node, nnode, ere)) {
+ if (zvrf && ere->re->vrf_id != zvrf->vrf->vrf_id)
continue;
- XFREE(MTYPE_RE, zer);
+ early_route_memory_free(ere);
node->data = NULL;
list_delete_node(l, node);
mq->size--;
@@ -3743,7 +3743,6 @@ static void rib_queue_init(void)
/* fill in the work queue spec */
zrouter.ribq->spec.workfunc = &meta_queue_process;
- zrouter.ribq->spec.errorfunc = NULL;
zrouter.ribq->spec.completion_func = NULL;
/* XXX: TODO: These should be runtime configurable via vty */
zrouter.ribq->spec.max_retries = 3;