From c3b07057fd7f02b4e6bb006bcecff8683237778e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 24 Aug 2011 15:27:14 -0700 Subject: [PATCH] ofproto-dpif: Fix behavior when a subset of VLANs is trunked. Reported-by: Philippe Jung --- ofproto/ofproto-dpif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 98bcc747..bd976f76 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1119,7 +1119,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); -- 2.30.2