eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 34cd8d5f3e76f85c1dcb2466222994e6972ab494
parent 6917f75c6acf4203fd0b80a1228a91521b39e208
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Tue, 15 Oct 2019 10:34:11 -0700

eap-ttls: Fix memory leak

A very unlikely condition could result in struct phase2_method being
leaked.

Diffstat:
Msrc/eap-ttls.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/eap-ttls.c b/src/eap-ttls.c @@ -1089,7 +1089,7 @@ static bool eap_ttls_settings_load(struct eap_state *eap, struct l_settings *settings, const char *prefix) { - struct phase2_method *phase2 = l_new(struct phase2_method, 1); + struct phase2_method *phase2; const char *phase2_method_name; char setting[72]; uint8_t i; @@ -1100,6 +1100,8 @@ static bool eap_ttls_settings_load(struct eap_state *eap, if (!phase2_method_name) return false; + phase2 = l_new(struct phase2_method, 1); + snprintf(setting, sizeof(setting), "%sTTLS-Phase2-", prefix); for (i = 0; tunneled_non_eap_method_ops[i].name; i++) {