From: ZhengLingyun Date: Thu, 10 Apr 2014 15:07:05 +0000 (-0700) Subject: vlandev: Fix an obvious predicate logic crash bug. X-Git-Tag: v2.1.1~9 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=4db1dc032408ab86b5ce875c0556183480f53dc9 vlandev: Fix an obvious predicate logic crash bug. Signed-off-by: ZhengLingyun Signed-off-by: Ben Pfaff --- diff --git a/lib/vlandev.c b/lib/vlandev.c index b793f7748..e5cc2fd68 100644 --- a/lib/vlandev.c +++ b/lib/vlandev.c @@ -374,7 +374,7 @@ static int vlandev_del__(const char *vlan_dev) { struct shash_node *vd_node = shash_find(&vlan_devs, vlan_dev); - if (!vd_node) { + if (vd_node) { struct vlan_dev *vd = vd_node->data; struct vlan_real_dev *vrd = vd->real_dev;