vlandev: Fix an obvious predicate logic crash bug.
authorZhengLingyun <konghuarukhr@163.com>
Thu, 10 Apr 2014 15:07:05 +0000 (08:07 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 10 Apr 2014 15:10:55 +0000 (08:10 -0700)
Signed-off-by: ZhengLingyun <konghuarukhr@163.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/vlandev.c

index 282d28c..6790b7b 100644 (file)
@@ -375,7 +375,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;