vconn: When validating OpenFlow actions always check for bad length.
authorBen Pfaff <blp@nicira.com>
Thu, 11 Feb 2010 20:26:45 +0000 (12:26 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Feb 2010 21:55:46 +0000 (13:55 -0800)
commit77512e6a11657a5353477a59325031f1c0609116
tree2391f12c8c79b9a704fe0884afb86b38b1b9929c
parent0ab8e15fd7b5618c0c513c69ab6fd4155eb13452
vconn: When validating OpenFlow actions always check for bad length.

This code was previously unreachable, but it makes sense to check the
action length before looking at the action any further.

This doesn't fix an actual bug--actions were always properly validated.

Also, rephrase a few of the switch cases to make it even more obvious
that they always return.

Reported-by: Jean Tourrilhes <jt@hpl.hp.com>
lib/vconn.c