diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-05 13:57:25 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-07-05 13:57:25 +0200 |
commit | 55b8d754c65c0568b68f6ab7398d4378a96b5aa1 (patch) | |
tree | 03e49bae4804a30ee78b0e7893367bb919dd0472 | |
parent | 4b284038e226b4deace501eae66c67737c7f324c (diff) |
vlan.c: prevent segfault in get_vlan_device_chain() if the base device does not exist
-rw-r--r-- | vlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |