All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] peap: Adjust V0 not to close tunnel on Success of Phase2
@ 2019-11-11 23:47 Tim Kourt
  0 siblings, 0 replies; only message in thread
From: Tim Kourt @ 2019-11-11 23:47 UTC (permalink / raw)
  To: iwd

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

---
 src/eap-peap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/eap-peap.c b/src/eap-peap.c
index c8949ca2..16ab0319 100644
--- a/src/eap-peap.c
+++ b/src/eap-peap.c
@@ -182,14 +182,14 @@ static void eap_extensions_handle_request(struct eap_state *eap,
 
 	eap_peap_phase2_send_response(response, sizeof(response), eap);
 
-	eap_tls_common_tunnel_close(eap);
-
 	eap_discard_success_and_failure(eap, false);
 	eap_tls_common_set_completed(eap);
 
 	if (r != EAP_EXTENSIONS_RESULT_SUCCCESS) {
 		eap_tls_common_set_phase2_failed(eap);
 
+		eap_tls_common_tunnel_close(eap);
+
 		return;
 	}
 
-- 
2.13.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-11 23:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-11 23:47 [PATCH 1/2] peap: Adjust V0 not to close tunnel on Success of Phase2 Tim Kourt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.