From: Martin Willi Date: Thu, 6 Sep 2012 16:30:24 +0000 (+0200) Subject: Send PEAP Failure result TLV if SoH check failed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fsoh;p=thirdparty%2Fstrongswan.git Send PEAP Failure result TLV if SoH check failed --- diff --git a/src/libcharon/plugins/eap_peap/eap_peap_server.c b/src/libcharon/plugins/eap_peap/eap_peap_server.c index 2ef2994b3f..5fcffd6907 100644 --- a/src/libcharon/plugins/eap_peap/eap_peap_server.c +++ b/src/libcharon/plugins/eap_peap/eap_peap_server.c @@ -233,6 +233,9 @@ static status_t process_soh(private_eap_peap_server_t *this, eap_payload_t *in) default: DBG1(DBG_IKE, "EAP-%M method failed", eap_type_get_names, &vendor, type); + this->ph2->destroy(this->ph2); + this->ph2 = NULL; + this->state = FAILED; break; } in->destroy(in);