pmlag

Poor man's link aggregation
git clone git://git.finwo.net/app/pmlag
Log | Files | Refs | README | LICENSE

commit 7e6c6359d47b5b79ac879543752394942a1fc6e6
parent 2f1d32c23cf7427b9d824672c3361116a9ca4b11
Author: Robin Bron <robin@finwo.nl>
Date:   Wed,  8 Mar 2023 21:15:08 +0100

Fix segfault when selecting 0th interface

Diffstat:
Msrc/util/routing-table.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/routing-table.c b/src/util/routing-table.c @@ -141,7 +141,7 @@ struct pmlag_iface * rt_find( // Select an interface at random int sel = rand() % llist_len; iface_entry = rt_entry->interfaces; - while(--sel) { + while(sel--) { iface_entry = iface_entry->next; }