odp-util: Avoid null dereference in parse_8021q_onward().
authorBen Pfaff <blp@nicira.com>
Tue, 31 Dec 2013 19:32:16 +0000 (11:32 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Dec 2013 19:36:39 +0000 (11:36 -0800)
commit5054d6fd32d5dd3354c1aed1bfa9fb2b7979324e
tree3ebdfeb9a0c83aaccd325164215a1f9b0309a51e
parent758c456df570a1af1d9e913d50a3478785663e66
odp-util: Avoid null dereference in parse_8021q_onward().

For parsing a mask, this code in parse_8021q_onward() always read out
the OVS_KEY_ATTR_VLAN attribute without first checking whether it existed.
The correct behavior, implemented by this commit, appears to be treating
the VLAN as wildcarded and to continue parsing the flow.

Bug #22312.
Reported-by: Krishna Miriyala <miriyalak@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
lib/odp-util.c