diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-04 08:36:02 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-04 08:42:03 -0500 |
| commit | ea66cec4882d8e3c53cbe9465cb4313c667e87bf (patch) | |
| tree | f3775e77ac0457ba2c96e2e9c38cd471ae80d213 /zebra/zebra_router.c | |
| parent | c05f659a58466dd1a8dfe2a2ebbefeeb0b9c8ee0 (diff) | |
zebra: Store actual safi in info pointer and don't free then remalloc
When we call zebra_vrf_table_create, we've already created the info
pointer in zebra_router_get_table, so properly set the info->safi
and just store the zvrf->table[afi][safi] value.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_router.c')
| -rw-r--r-- | zebra/zebra_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index 2e1c69fb92..7f911164cd 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -105,7 +105,7 @@ struct route_table *zebra_router_get_table(struct zebra_vrf *zvrf, info = XCALLOC(MTYPE_RIB_TABLE_INFO, sizeof(*info)); info->zvrf = zvrf; info->afi = afi; - info->safi = SAFI_UNICAST; + info->safi = safi; route_table_set_info(zrt->table, info); zrt->table->cleanup = zebra_rtable_node_cleanup; |
