]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix possible memory leak of RADIUS data in handle_auth()
authorMichael Braun <michael-dev@fami-braun.de>
Sun, 28 Apr 2019 11:14:57 +0000 (13:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2019 21:43:55 +0000 (23:43 +0200)
commit963681723f3b0a2eafe5c3f8fa1defbc112f671e
treee1fbf96716e7128b15836a2fae27269f0dcd6f62
parentd4ceaafc2443a7e2a6a73d7bd9cadde31d06b0cf
Fix possible memory leak of RADIUS data in handle_auth()

When returning from handle_auth() after ieee802_11_allowed_address()
returned HOSTAPD_ACL_ACCEPT, but before ieee802_11_set_radius_info() has
been called, identity, radius_cui, and psk might not have been consumed.

Fix this by avoiding the need to free these variables at all.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
src/ap/ieee802_11.c
src/ap/ieee802_11_auth.c