]> git.ipfire.org Git - thirdparty/hostap.git/commit
RADIUS server: Check for NULL pointer in a theoretical error case
authormenyua <menyua@qti.qualcomm.com>
Wed, 15 Oct 2025 07:23:16 +0000 (15:23 +0800)
committerJouni Malinen <j@w1.fi>
Fri, 17 Oct 2025 13:16:33 +0000 (16:16 +0300)
commita4f596a6364744eaca467146e3497f89b43cef29
tree8cf6970c154ef4147ec6c9e1bf267fd92852ac1e
parent29fa3e682d19d2640257d23c81fcffa2b893f093
RADIUS server: Check for NULL pointer in a theoretical error case

Since there is a special case with a call to
radius_server_free_clients() using data == NULL for a parsing failure,
radius_server_session_free() should check that data is set before
dereferencing it. It does not look like this case would be reachable in
practice, though, since this would require there to be an ongoing RADIUS
session which cannot really be established without the client
configuration file having been successfully parsed.

Signed-off-by: Meng Yuan <menyua@qti.qualcomm.com>
src/radius/radius_server.c