Merge pull request #3261 from mjstapp/fix_rib_close

zebra: only uninstall once, when closing rib table
This commit is contained in:
Donald Sharp 2018-10-30 12:12:10 -04:00 committed by GitHub
commit cac967ca3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3246,8 +3246,10 @@ void rib_close_table(struct route_table *table)
if (info->safi == SAFI_UNICAST)
hook_call(rib_update, rn, NULL);
if (!RIB_SYSTEM_ROUTE(dest->selected_fib))
if (!RIB_SYSTEM_ROUTE(dest->selected_fib)) {
rib_uninstall_kernel(rn, dest->selected_fib);
dest->selected_fib = NULL;
}
}
}
}