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