diff options
author | Hans Dedecker <hans.dedecker@technicolor.com> | 2013-12-05 12:13:01 +0100 |
---|---|---|
committer | Hans Dedecker <hans.dedecker@technicolor.com> | 2013-12-05 12:13:01 +0100 |
commit | 47bcdec8bd3bea91ef0510cdef7702bd559e8369 (patch) | |
tree | b2d3a0fff2bd2602219ece59be103aab06ea8f2c /src | |
parent | d2e8dc035bbbe8f29533817b892ddd41350b87f8 (diff) |
Fix uci odhcpd config parsing
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 6c09541..e9a61a9 100644 --- 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); |