From 0a93b253b58a65ed29a7cf98744bb741d551d7a4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 18 Dec 2023 12:18:51 -0500 Subject: [PATCH] Discard packets not equal to size of telemetry --- bin/dash2can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dash2can.c b/bin/dash2can.c index 26b267c..6ba6a06 100644 --- a/bin/dash2can.c +++ b/bin/dash2can.c @@ -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; }