From: Steven Barth Date: Fri, 31 May 2013 09:27:48 +0000 (+0200) Subject: Fix handling of multiple RAs in a row. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf2c1eec0dcd49c0b838a97a1e21e712a83b4320;p=oweals%2Fodhcp6c.git Fix handling of multiple RAs in a row. The default route-entry was not correctly reinitialized. Thanks to pmarks-net for the detailed bugreport. --- 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)