summaryrefslogtreecommitdiff
path: root/package/swconfig/src
diff options
context:
space:
mode:
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-10-03 23:39:31 +0000
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-10-03 23:39:31 +0000
commitb7d3d9d3cef2286b7266dc447265a0a21565b9b9 (patch)
treea14b4dd6723fe3e1ace5aa1849d8a55c963b8a08 /package/swconfig/src
parent9bafc99bbafe076e52475f3c8541f66b0acdbce0 (diff)
swconfig: fix vlan/port configs being applied to all switches
Check devn instead of dev (which will never be null at this point). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28362 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/swconfig/src')
-rw-r--r--package/swconfig/src/uci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/swconfig/src/uci.c b/package/swconfig/src/uci.c
index 1de689ce6e..893e3d1dd8 100644
--- a/package/swconfig/src/uci.c
+++ b/package/swconfig/src/uci.c
@@ -183,7 +183,7 @@ found:
port = o->v.string;
}
}
- if (!dev || !port || !port[0])
+ if (!devn || !port || !port[0])
continue;
port_n = strtoul(port, &port_err, 0);
@@ -208,7 +208,7 @@ found:
vlan = o->v.string;
}
}
- if (!dev || !vlan || !vlan[0])
+ if (!devn || !vlan || !vlan[0])
continue;
vlan_n = strtoul(vlan, &vlan_err, 0);