ofproto-dpif: Fix behavior when a subset of VLANs is trunked.
authorBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 22:27:14 +0000 (15:27 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 16 Sep 2011 16:13:47 +0000 (09:13 -0700)
Reported-by: Philippe Jung <phil.jung@free.fr>
ofproto/ofproto-dpif.c

index 5ebf057..2d0b83c 100644 (file)
@@ -1061,7 +1061,7 @@ bundle_set(struct ofproto *ofproto_, void *aux,
     }
 
     /* Get trunked VLANs. */
-    trunks = s->vlan == -1 ? NULL : s->trunks;
+    trunks = s->vlan == -1 ? s->trunks : NULL;
     if (!vlan_bitmap_equal(trunks, bundle->trunks)) {
         free(bundle->trunks);
         bundle->trunks = vlan_bitmap_clone(trunks);