]> git.ipfire.org Git - thirdparty/hostap.git/commit
FILS: Do not leave error value in left counter
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 24 Nov 2017 10:21:18 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 24 Nov 2017 10:26:38 +0000 (12:26 +0200)
commit1489fcf87dbe6dc6a0e38e408a9e629072742251
treede87cda9d8c82bdf6dbd1a7822332269ffb00a91
parentbeae255a723b825d36bc2094a089a29221d391e8
FILS: Do not leave error value in left counter

If fils_decrypt_assoc() were to fail on the AP side, the previous
implementation could have continued through the response generation
using left = -1. That could have resulted in unexpected processing if
this value were to be used as the length of the remaining (unencrypted)
IEs. Fix this by not updating left in the failure case.

Fixes: 78815f3dde6e ("FILS: Decrypt Association Request elements and check Key-Auth (AP)")
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_11.c