fsm: centralize checks on the frame
We check the frame length for the various message type in a single place,
thus removing all checks around (that didn't cover all cases anyways).
Also, we check for protocol version 2, something that we never did.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment