hostapd/src
Jouni Malinen 84f8947735 PTKSA: Fix a potential hostapd memory leak during reconfiguration
Some of the reconfiguration cases (e.g., with WPS reconfiguration
enabling WPA/WPA2) might end up calling hostapd_setup_wpa() twice
without calling hostapd_deinit_wpa() in the middle. This would have
resulted in a memory leak since the PTKSA cache was being reinitialized
without freeing previous memory allocation.

Fix this by making PTKSA cachine initialization independent of
hapd->wpa_auth so that reinitialization does not happen in a manner that
would have overridden the old hapd->ptksa pointer without freeing the
referenced resources.

Fixes: f2f8e4f458 ("Add PTKSA cache to hostapd")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2021-06-25 00:20:02 +03:00
..
ap PTKSA: Fix a potential hostapd memory leak during reconfiguration 2021-06-25 00:20:02 +03:00
common P2P: Extend channel determination/validation to 6 GHz channels 2021-06-10 23:43:03 +03:00
crypto OpenSSL: Fix compilation for version < 1.1.0 without CONFIG_ECC 2021-04-10 12:48:08 +03:00
drivers P2P: Allow 6 GHz channels to be included in the P2P_FIND operation 2021-06-14 20:24:37 +03:00
eap_common EAP-SIM/AKA: Fix check for anonymous decorated identity 2021-03-20 16:28:44 +02:00
eap_peer EAP peer: Make EAP-Success handling more robust against race conditions 2021-03-15 00:45:20 +02:00
eap_server P2P: Use SAE+PMF for P2P connection in 6 GHz 2021-06-14 20:24:37 +03:00
eapol_auth build: Make more library things common 2020-10-12 20:20:35 +03:00
eapol_supp build: Make more library things common 2020-10-12 20:20:35 +03:00
fst FST: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
l2_packet build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p P2P: Allow connection on 6 GHz channels if requested 2021-06-14 20:24:37 +03:00
pae MACsec: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
radius RADIUS client: Support SO_BINDTODEVICE 2021-02-27 10:51:15 +02:00
rsn_supp FILS: Fix PMKID derivation for OKC 2021-05-21 21:05:41 +03:00
tls TLS: Fix highest TLS version disabling with internal TLS client 2021-03-14 13:08:04 +02:00
utils wpabuf: Add helper functions for writing 64-bit integers 2021-03-07 21:31:41 +02:00
wps P2P: Use SAE+PMF for P2P connection in 6 GHz 2021-06-14 20:24:37 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile build: Add a common-clean target 2020-10-10 12:48:41 +03:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00