]> git.ipfire.org Git - thirdparty/hostap.git/commit
FILS: Fix send_assoc_resp() HLP extension to cover sta == NULL
authorJouni Malinen <j@w1.fi>
Sun, 5 Feb 2017 14:40:15 +0000 (16:40 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 5 Feb 2017 14:40:15 +0000 (16:40 +0200)
commit84bb12aa6da3c8a1ea8f30352999000aa72fc41a
tree23ab97ae075eb54f0bf3169dd66bb65e1a32c60d
parent1fb4437c802d3dea1fba895860c90cf1b6cd660a
FILS: Fix send_assoc_resp() HLP extension to cover sta == NULL

Commit 91d91abf6f9bf420643a9245b63f5ac8c6bbb18a ('FILS: DHCP relay for
HLP requests') added steps that are conditional on sta->fils_hlp_resp
being non-NULL. One of these cases within send_assoc_resp() was properly
protected from sta == NULL error case (that is now possible after a
recent DMG change), but the first one was not. A DMG error case in a
CONFIG_FILS=y build could have hit a NULL pointer dereference here. Fix
this by verifying sta != NULL more consistently.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11.c