]> git.ipfire.org Git - thirdparty/hostap.git/commit
Add helper function to clear and free wpa_psk list
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Mon, 19 Jan 2015 22:57:41 +0000 (23:57 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 21 Feb 2015 15:11:15 +0000 (17:11 +0200)
commit891dfb333699db01679b5fc38344186ad21243b2
tree5d7bf0b4c36a74bf702939d64226b2fc4f032ebc
parentcfb5576d9343a1b0605e0a3024d3194daa74ed9e
Add helper function to clear and free wpa_psk list

This change adds the function hostapd_config_clear_wpa_psk() that
deletes an entire wpa_psk structure, making sure to follow the linked
list and to free the allocated memory of each PSK node. This helps to
prevent memory leaks when using PSKs from multiple sources and
reconfiguring the AP during runtime.

Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>
hostapd/config_file.c
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/hostapd.c
src/ap/wps_hostapd.c