Discard packets not equal to size of telemetry

This commit is contained in:
XANTRONIX Development 2023-12-18 12:18:51 -05:00
parent 8accd62cf7
commit 0a93b253b5

View file

@ -81,7 +81,7 @@ int hexagram_main_dash2can(int argc, char **argv) {
if ((len = recv(sock, &packet, sizeof(packet), 0)) < 0) {
goto error_io;
} else if (len < (ssize_t)sizeof(packet)) {
} else if (len != (ssize_t)sizeof(packet)) {
continue;
}