mka: Fix length when encoding SAK-use
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 19 Jul 2016 09:56:53 +0000 (11:56 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Aug 2016 08:32:23 +0000 (11:32 +0300)
commit12447457bf09bc9ba5d1e4a5718cd4298425c435
tree91516eae19beee7f504512266c44c0c78bf1eff2
parent71dc78904f8e783041b145e6851dd893224ce514
mka: Fix length when encoding SAK-use

The room we actually use is length. This could also mess up the
receiver, since it will advance by the actual length (as indicated by
the parameter body's length), which could differ from the offset at
which we stored the next item.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
src/pae/ieee802_1x_kay.c