From cf2c1eec0dcd49c0b838a97a1e21e712a83b4320 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 31 May 2013 11:27:48 +0200 Subject: [PATCH] Fix handling of multiple RAs in a row. The default route-entry was not correctly reinitialized. Thanks to pmarks-net for the detailed bugreport. --- src/ra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ra.c b/src/ra.c index 7d1ded0..24c99c5 100644 --- a/src/ra.c +++ b/src/ra.c @@ -218,6 +218,8 @@ bool ra_process(void) uint32_t router_valid = ntohs(adv->nd_ra_router_lifetime); // Parse default route + entry.target = any; + entry.length = 0; entry.router = from.sin6_addr; entry.priority = pref_to_priority(adv->nd_ra_flags_reserved); if (entry.priority < 0) -- 2.39.5