The packet mode byte is akin to a signature. If that is invalid, there's no point in calculating the checksum, so check the mode first. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
api.c | ||
protocol.c | ||
protocol.h |
The packet mode byte is akin to a signature. If that is invalid, there's no point in calculating the checksum, so check the mode first. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
api.c | ||
protocol.c | ||
protocol.h |