Commit 14c10390 authored by Laurent Aimar's avatar Laurent Aimar

* csa: decrypt only when payload >= 8 bytes.

parent 5a6206c3
...@@ -126,6 +126,9 @@ void csa_Decrypt( csa_t *c, uint8_t *pkt ) ...@@ -126,6 +126,9 @@ void csa_Decrypt( csa_t *c, uint8_t *pkt )
i_hdr += pkt[4] + 1; i_hdr += pkt[4] + 1;
} }
if( 188 - i_hdr < 8 )
return;
/* init csa state */ /* init csa state */
csa_StreamCypher( c, 1, ck, &pkt[i_hdr], ib ); csa_StreamCypher( c, 1, ck, &pkt[i_hdr], ib );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment