]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Ignore unexpected duplicated Authentication Confirm
authorJouni Malinen <jouni@codeaurora.org>
Wed, 5 Feb 2020 22:29:39 +0000 (00:29 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Sat, 8 Feb 2020 05:19:53 +0000 (07:19 +0200)
commit18714af2d8b125032c60f94f3c10f0190021ddb4
tree6a876a9967cc3f034c7d58302bb54df6c1f6c02a
parent8f8473cebbeb6504d29c301d0dcc75b0ec227d46
DPP: Ignore unexpected duplicated Authentication Confirm

Previously, unexpected Authentication Confirm messages were ignored in
cases where no Authentication Confirm message was expected at all, but
if this message was received twice in a state where it was expected, the
duplicated version was also processed. This resulted in unexpected
behavior when authentication result was processed multiple times (e.g.,
two instances of GAS client could have been started).

Fix this by checking auth->waiting_auth_conf before processing
Authetication Confirm. That boolean was already tracked, but it was used
only for other purposes.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c