Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
/* Now create the digest of the message and the key */
{
/* Now create the digest of the message and the key */
{
- uint8_t checksum_cache[1512 + KEYLENGTH];
+ uint8_t checksum_cache[(sizeof(rrmsg) - sizeof(rrmsg.signature)) + KEYLENGTH];
/* Create packet + key cache */
/* First the OLSR packet + signature message - digest */
memcpy(checksum_cache, &rrmsg, sizeof(rrmsg) - sizeof(rrmsg.signature));
/* Create packet + key cache */
/* First the OLSR packet + signature message - digest */
memcpy(checksum_cache, &rrmsg, sizeof(rrmsg) - sizeof(rrmsg.signature));