]> git.ipfire.org Git - thirdparty/hostap.git/commit
HS 2.0: Fix Terms and Conditions URL handling
authorJouni Malinen <jouni@codeaurora.org>
Tue, 30 Oct 2018 17:15:11 +0000 (19:15 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 30 Oct 2018 17:15:11 +0000 (19:15 +0200)
commitab3ab50757534114b1d005e19dd9d4b30cd5fab7
tree642468a066a5887083dca3d1e5a627c8059f8c77
parent0f0aa2a640ff1a1037c7f3323009bb1d12e7a6cd
HS 2.0: Fix Terms and Conditions URL handling

Do not try to determine the length of the T&C Server URL before checking
that the URL is available. This got broken in a change to move the
handling to the AS. hostapd could potentially have hit a NULL pointer
dereference if the authentication server sent an unconsistent set of T&C
information.

Fixes: d4e39c51f8bb ("HS 2.0: Move Terms and Conditions Server URL generation from AP to AS")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/hs20.c