hostapd/src
Jouni Malinen 3d490296bc DPP2: Fix error path handling in enterprise provisioning
The allocated memory pointed by the pem pointer was freed on an error
path without clearing the pointer to NULL before returning it from the
function. This could have resulted in use of freed memory in an error
case. Fix this by clearing the pointer so that the function returns NULL
properly in the case of this error.

Fixes: ace3723d98 ("DPP2: Enterprise provisioning (Enrollee)")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-11-02 16:52:01 +02:00
..
ap SAE-PK: Do not accept SAE-PK status code when no PK is configured 2020-10-20 00:37:01 +03:00
common DPP2: Fix error path handling in enterprise provisioning 2020-11-02 16:52:01 +02:00
crypto OpenSSL: Make openssl_debug_dump_certificate() more robust 2020-10-19 22:57:24 +03:00
drivers nl80211: Check for proper nlmsg allocation in send_and_recv_msgs_owner() 2020-10-27 11:39:45 +02:00
eap_common build: Make more library things common 2020-10-12 20:20:35 +03:00
eap_peer EAP-SIM peer: Send AT_IDENTITY first 2020-10-30 13:59:49 +02:00
eap_server build: Make more library things common 2020-10-12 20:20:35 +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: Stop old listen radio work before go to WAIT_PEER_IDLE state 2020-10-14 23:16:16 +03:00
pae MACsec: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
radius build: Make more library things common 2020-10-12 20:20:35 +03:00
rsn_supp build: Make more library things common 2020-10-12 20:20:35 +03:00
tls Fix couple more typos 2020-10-20 00:37:01 +03:00
utils build: Make more library things common 2020-10-12 20:20:35 +03:00
wps build: Make more library things common 2020-10-12 20:20:35 +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