summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ubus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ubus.c b/src/ubus.c
index b263da6..b2e48cf 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -245,15 +245,15 @@ static int handle_update(_unused struct ubus_context *ctx, _unused struct ubus_o
{
struct blob_attr *tb[IFACE_ATTR_MAX];
struct interface *c;
- bool update = false;
+ bool update = true;
blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blob_data(msg), blob_len(msg));
const char *interface = (tb[IFACE_ATTR_INTERFACE]) ?
blobmsg_get_string(tb[IFACE_ATTR_INTERFACE]) : "";
avl_for_each_element(&interfaces, c, avl) {
- if (!strcmp(interface, c->name) && !c->ignore) {
- update = true;
+ if (!strcmp(interface, c->name) && c->ignore) {
+ update = false;
break;
}
}