]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Fix bip_protect() memory allocation
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 14 Mar 2016 16:42:46 +0000 (18:42 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 14 Mar 2016 16:42:46 +0000 (18:42 +0200)
commit9231c2476ff80f158826c10695a10e58a7fd3839
tree965a7f4a3eb10ff780b069036ea65539698ce4f5
parentc6c29be1bdc56bfd3a748f06063b1ba0aa80dc94
wlantest: Fix bip_protect() memory allocation

The addition operator is of higher precedence than the ternary
conditional and the construction here needs to use parentheses to
calculate the buffer length properly when generating test frames with
BIP protection.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wlantest/bip.c