summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-22 12:49:54 +0200
committerSteven Barth <steven@midlink.org>2013-10-22 12:49:54 +0200
commite418a237611a5d2ad6dfa8a814b560350345b2f7 (patch)
tree41083b22a225db59abec93e29efaef59950403e3 /src/ubus.c
parenteb7edc757c4bf258794c8ec7c721c2007c47877e (diff)
Don't accidentally apply settings from foreign interfaces
Diffstat (limited to 'src/ubus.c')
-rw-r--r--src/ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ubus.c b/src/ubus.c
index 1c74499..dc2f171 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -246,7 +246,7 @@ void ubus_apply_network(void)
bool cmatched = !strcmp(interface, c->name) || !strcmp(ifname, c->ifname);
matched |= cmatched;
- if (!cmatched && (!f || (f != c->upstream && f[-1] != 0)))
+ if (!cmatched && (!c->upstream_len || !f || (f != c->upstream && f[-1] != 0)))
continue;
if (!c->ignore)