batman-adv: check for tt_reponse packet real length
authorAntonio Quartulli <ordex@autistici.org>
Sun, 16 Oct 2011 18:32:03 +0000 (20:32 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:34 +0000 (13:08 +0100)
commit8b7342d673d31e7aa60baae35321c11532275cdb
tree5e6790ae621aad9fda859fcb39aa626dcfb8bb4d
parentdc58fe32e6a4fbd270e8f045225ce475073d0772
batman-adv: check for tt_reponse packet real length

Before accessing the TT_RESPONSE packet payload, the node has to ensure that the
packet is long enough as it would expect to be.

Reported-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/routing.c