Don't send an invalid reachabletime in RA message when
the interface is shutdown due to a invalid configured
ra_reachabletime.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
iface->managed = blobmsg_get_u32(c);
if ((c = tb[IFACE_ATTR_RA_REACHABLETIME])) {
- iface->ra_reachabletime = blobmsg_get_u32(c);
- if (iface->ra_reachabletime > 3600000)
+ uint32_t ra_reachabletime = blobmsg_get_u32(c);
+ if (ra_reachabletime > 3600000)
goto err;
+
+ iface->ra_reachabletime = ra_reachabletime;
}
if ((c = tb[IFACE_ATTR_RA_RETRANSTIME])) {