From e418a237611a5d2ad6dfa8a814b560350345b2f7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 22 Oct 2013 12:49:54 +0200 Subject: [PATCH] Don't accidentally apply settings from foreign interfaces --- src/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2