]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commitdiff
Removed sanity check for received slcan ASCII data
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 21 Jan 2009 07:38:18 +0000 (07:38 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Wed, 21 Jan 2009 07:38:18 +0000 (07:38 +0000)
as this is done with ASCII comparision three lines above.

slcanpty.c

index 13c4b7fafa698a46cc1e73773cfe5395cda6f750..e80b7251aafedfe85ed17879b81abfbf270c0559 100644 (file)
@@ -170,9 +170,6 @@ int main(int argc, char **argv)
 
                        rxf.can_dlc = rxbuf[rxp] & 0x0F; /* get can_dlc */
 
-                       if (rxf.can_dlc > 8)
-                               continue;
-
                        rxbuf[rxp] = 0; /* terminate can_id string */
 
                        rxf.can_id = strtoul(rxbuf+1, NULL, 16);