FreeCalypso > hg > freecalypso-sw
diff rvinterf/lowlevel/rvifmain.c @ 902:4423039aeb4b
rvtdump: report ext LCD output packets sanely
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 06 Sep 2015 07:27:57 +0000 |
parents | 136fa1ccd591 |
children | ed5dcc53e0b3 |
line wrap: on
line diff
--- a/rvinterf/lowlevel/rvifmain.c Sun Jul 05 03:17:40 2015 +0000 +++ b/rvinterf/lowlevel/rvifmain.c Sun Sep 06 07:27:57 2015 +0000 @@ -180,8 +180,10 @@ forward_nonrvt_pkt(); return; case RVT_EXTUI_HEADER: + if (rxpkt_len < 5 || !(rxpkt_len & 1)) + goto unknown; if (!no_output || logF) - print_unknown_packet(); /* formatting TBD */ + report_extui_packet(); if (client_head) forward_nonrvt_pkt(); return;