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