summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-05 13:57:25 +0200
committerJo-Philipp Wich <jow@openwrt.org>2012-07-05 13:57:25 +0200
commit55b8d754c65c0568b68f6ab7398d4378a96b5aa1 (patch)
tree03e49bae4804a30ee78b0e7893367bb919dd0472 /vlan.c
parent4b284038e226b4deace501eae66c67737c7f324c (diff)
vlan.c: prevent segfault in get_vlan_device_chain() if the base device does not exist
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlan.c b/vlan.c
index 9a6e2b6..785cc9e 100644
--- a/vlan.c
+++ b/vlan.c
@@ -145,7 +145,7 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
s = split_vlan(buf);
dev = device_get(buf, create);
- if (!dev && !create)
+ if (!dev)
goto error;
do {