odp-util: Correct length check in format_odp_action().
authorJesse Gross <jesse@nicira.com>
Thu, 16 Dec 2010 22:27:47 +0000 (14:27 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 16 Dec 2010 22:33:04 +0000 (14:33 -0800)
commitb7b0c62097cbce87b247e30f16e1fbdd1770cca3
tree12ee12f819e0109b7c29750c2f1da40ee2e01739
parente0ce13c4dc34f44d81e0001882a0be88321b5c87
odp-util: Correct length check in format_odp_action().

When printing the action list we first check that the size of the
action matches the expected length for that type.  However, when
doing the lookup we were passing in the length of the action, not
the type, leading to bogus values.
lib/odp-util.c