cansniffer: fix snifftab CAN-ID query

Due to a wrong test to check for existing CAN-IDs in the snifftab
it was not possible to have the CAN-ID '0' in the list and displayed.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/269/head
Oliver Hartkopp 2020-12-02 13:14:04 +01:00
parent c3d9cc2027
commit 6a14256323
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ int sniftab_index(canid_t id)
{
int i;
for (i = 0; i <= idx; i++)
for (i = 0; i < idx; i++)
if (id == sniftab[i].current.can_id)
return i;