Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 1/2] eap-ttls: Address mem leak reported by coverity
@ 2019-10-15 17:34 Tim Kourt
  2019-10-15 17:34 ` [PATCH 2/2] client: Address dbl free " Tim Kourt
  2019-10-16 20:50 ` [PATCH 1/2] eap-ttls: Address mem leak " Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Kourt @ 2019-10-15 17:34 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

The issue has appeared in 6017dc573
---
 src/eap-ttls.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/eap-ttls.c b/src/eap-ttls.c
index 00559cb7..619c7efa 100644
--- 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++) {
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-16 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 17:34 [PATCH 1/2] eap-ttls: Address mem leak reported by coverity Tim Kourt
2019-10-15 17:34 ` [PATCH 2/2] client: Address dbl free " Tim Kourt
2019-10-16 20:50 ` [PATCH 1/2] eap-ttls: Address mem leak " Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox