1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

netlink: Fix RTM_GETROUTE loop for RT_TABLE_UNSPEC

Reviewed by: bz, pouria
Fixes: 7e5bf68495 ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57234
This commit is contained in:
Ed Maste
2026-05-22 10:27:53 -04:00
parent f05fb5157b
commit 33acf0f26b
+1 -1
View File
@@ -726,7 +726,7 @@ handle_rtm_dump(struct nlpcb *nlp, uint32_t fibnum, int family,
if (fibnum == RT_TABLE_UNSPEC) {
for (int i = 0; i < V_rt_numfibs; i++) {
dump_rtable_fib(&wa, fibnum, family);
dump_rtable_fib(&wa, i, family);
if (wa.error != 0)
break;
}