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

This commit is contained in:
Laurent Aimar 2005-04-13 08:27:34 +00:00
parent 5a6206c332
commit 14c10390a0
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ void csa_Decrypt( csa_t *c, uint8_t *pkt )
i_hdr += pkt[4] + 1;
}
if( 188 - i_hdr < 8 )
return;
/* init csa state */
csa_StreamCypher( c, 1, ck, &pkt[i_hdr], ib );