mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
handshake: Do not leak vendor_ies
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x7fd748ad00f8 in __interceptor_malloc (/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/libasan.so.5+0x10c0f8)
#1 0x688c21 in l_malloc ell/util.c:62
#2 0x4beec7 in handshake_state_set_vendor_ies src/handshake.c:324
#3 0x464e4e in station_handshake_setup src/station.c:1203
#4 0x472a2f in __station_connect_network src/station.c:2975
#5 0x473a30 in station_connect_network src/station.c:3078
#6 0x4ed728 in network_connect_8021x src/network.c:1497
Fixes: f24cfa481b
("handshake: Add setter for vendor IEs")
This commit is contained in:
parent
1825fd7ab7
commit
60366346fb
@ -115,6 +115,7 @@ void handshake_state_free(struct handshake_state *s)
|
|||||||
l_free(s->fte);
|
l_free(s->fte);
|
||||||
l_free(s->fils_ip_req_ie);
|
l_free(s->fils_ip_req_ie);
|
||||||
l_free(s->fils_ip_resp_ie);
|
l_free(s->fils_ip_resp_ie);
|
||||||
|
l_free(s->vendor_ies);
|
||||||
|
|
||||||
if (s->erp_cache)
|
if (s->erp_cache)
|
||||||
erp_cache_put(s->erp_cache);
|
erp_cache_put(s->erp_cache);
|
||||||
|
Loading…
Reference in New Issue
Block a user