]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Send PEAP Failure result TLV if SoH check failed soh
authorMartin Willi <martin@revosec.ch>
Thu, 6 Sep 2012 16:30:24 +0000 (18:30 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 6 Sep 2012 16:30:24 +0000 (18:30 +0200)
src/libcharon/plugins/eap_peap/eap_peap_server.c

index 2ef2994b3ffaa2833296f01d1bcac9a03db7ca16..5fcffd69073e32ffb0775f6b6da18bdf2ad32c68 100644 (file)
@@ -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);