batman-adv: Fix range check for expected packets
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Sun, 30 Oct 2011 15:22:43 +0000 (16:22 +0100)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:35 +0000 (13:08 +0100)
commit76e8d7b0d1b0091929e8cd18551a87b6bb6ef2c1
tree30b2e7650d62277cfb63dfe8145f4b372b47af4c
parent8b7342d673d31e7aa60baae35321c11532275cdb
batman-adv: Fix range check for expected packets

The check for new packets in the future used a wrong binary operator,
which makes the check expression always true and accepting too many
packets.

Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bitarray.c