projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: limit ra_retranstime to 60000
[project/odhcpd.git]
/
src
/
config.c
diff --git
a/src/config.c
b/src/config.c
index
9348985
..
979603c
100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-608,8
+608,11
@@
int config_parse_interface(void *data, size_t len, const char *name, bool overwr
goto err;
}
goto err;
}
- if ((c = tb[IFACE_ATTR_RA_RETRANSTIME]))
+ if ((c = tb[IFACE_ATTR_RA_RETRANSTIME]))
{
iface->ra_retranstime = blobmsg_get_u32(c);
iface->ra_retranstime = blobmsg_get_u32(c);
+ if (iface->ra_retranstime > 60000)
+ goto err;
+ }
if ((c = tb[IFACE_ATTR_RA_HOPLIMIT])) {
iface->ra_hoplimit = blobmsg_get_u32(c);
if ((c = tb[IFACE_ATTR_RA_HOPLIMIT])) {
iface->ra_hoplimit = blobmsg_get_u32(c);