From: ZhengLingyun Date: Thu, 10 Apr 2014 15:07:05 +0000 (-0700) Subject: vlandev: Fix an obvious predicate logic crash bug. X-Git-Tag: sliver-openvswitch-2.2.90-1~5^2~1 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=96613315cbd1a1c4c1b157943e3bd6b7aaa9f328 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 382487cdc..d2f5a37e1 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;