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:40:16 +0000 (11:40 -0800)
commit8c64ab6870bede337e7469332275544519c5c606
treecc11ec9ee8f3203e684a4ddf1f70729875562dc3
parent6e2c73dbc6392c65ccfa4797036020389acf7805
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