projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2e8dc0
)
Fix uci odhcpd config parsing
author
Hans Dedecker
<hans.dedecker@technicolor.com>
Thu, 5 Dec 2013 11:13:01 +0000
(12:13 +0100)
committer
Hans Dedecker
<hans.dedecker@technicolor.com>
Thu, 5 Dec 2013 11:13:01 +0000
(12:13 +0100)
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index 6c0954101386b8d23d0620313815f5accc7b9f23..e9a61a9b5564cb0c24d1d267a670dc57e81006d8 100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-187,8
+187,8
@@
static void set_config(struct uci_section *s)
struct blob_attr *tb[ODHCPD_ATTR_MAX], *c;
blob_buf_init(&b, 0);
- uci_to_blob(&b, s, &
lease
_attr_list);
- blobmsg_parse(
lease
_attrs, ODHCPD_ATTR_MAX, tb, blob_data(b.head), blob_len(b.head));
+ uci_to_blob(&b, s, &
odhcpd
_attr_list);
+ blobmsg_parse(
odhcpd
_attrs, ODHCPD_ATTR_MAX, tb, blob_data(b.head), blob_len(b.head));
if ((c = tb[ODHCPD_ATTR_LEGACY]))
config.legacy = blobmsg_get_bool(c);