From 024120f8ea3e3faab4d87a2f083c3da16e15b91a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 18 Feb 2021 10:46:56 +0100 Subject: [PATCH] tls-eap: Only servers conclude EAP method after processing packets As client with older TLS versions, we have to ack the receipt of the server's Finished message instead. Fixes: 083f38259c79 ("tls-eap: Conclude EAP method also after processing packets") --- src/libtls/tls_eap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtls/tls_eap.c b/src/libtls/tls_eap.c index 196cf92fe..a784c4b47 100644 --- a/src/libtls/tls_eap.c +++ b/src/libtls/tls_eap.c @@ -394,7 +394,7 @@ METHOD(tls_eap_t, process, status_t, switch (status) { case INVALID_STATE: - if (this->tls->is_complete(this->tls)) + if (this->is_server && this->tls->is_complete(this->tls)) { return SUCCESS; }