From d93ca2a0fdde23ef3e61bc34a9809f6c38239c45 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 May 2011 15:47:27 -0700 Subject: [PATCH] ofp-util: Fix validation of OFPAT_SET_VLAN_PCP actions. Found by sparse. --- lib/ofp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 5aa2b825..ddac7727 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1922,7 +1922,7 @@ check_action(const union ofp_action *a, unsigned int len, if (error) { return error; } - if (a->vlan_vid.vlan_vid & ~7) { + if (a->vlan_pcp.vlan_pcp & ~7) { return ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_ARGUMENT); } return 0; -- 2.30.2