projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: fix invalid hoplimit in RA message
[project/odhcpd.git]
/
src
/
config.c
diff --git
a/src/config.c
b/src/config.c
index
9b4fa46
..
7940095
100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-619,9
+619,11
@@
int config_parse_interface(void *data, size_t len, const char *name, bool overwr
}
if ((c = tb[IFACE_ATTR_RA_HOPLIMIT])) {
}
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;
goto err;
+
+ iface->ra_hoplimit = ra_hoplimit;
}
if ((c = tb[IFACE_ATTR_RA_MTU])) {
}
if ((c = tb[IFACE_ATTR_RA_MTU])) {