diff options
-rw-r--r-- | src/config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 2369372..9b4fa46 100644 --- a/src/config.c +++ b/src/config.c @@ -611,9 +611,11 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr } 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])) { |