From 47bcdec8bd3bea91ef0510cdef7702bd559e8369 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 5 Dec 2013 12:13:01 +0100 Subject: [PATCH] Fix uci odhcpd config parsing --- src/config.c | 4 ++-- 1 file 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); -- 2.30.2