diff options
Diffstat (limited to 'src/libcharon/plugins/eap_ttls/eap_ttls_server.c')
-rw-r--r-- | src/libcharon/plugins/eap_ttls/eap_ttls_server.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_server.c b/src/libcharon/plugins/eap_ttls/eap_ttls_server.c index c4a18a434..17a520d99 100644 --- a/src/libcharon/plugins/eap_ttls/eap_ttls_server.c +++ b/src/libcharon/plugins/eap_ttls/eap_ttls_server.c @@ -67,7 +67,7 @@ struct private_eap_ttls_server_t { METHOD(tls_application_t, process, status_t, private_eap_ttls_server_t *this, tls_reader_t *reader) { - chunk_t data; + chunk_t data = chunk_empty; status_t status; payload_t *payload; eap_payload_t *in; @@ -76,11 +76,18 @@ METHOD(tls_application_t, process, status_t, u_int32_t vendor, received_vendor; status = this->avp->process(this->avp, reader, &data); - if (status == FAILED) + switch (status) { - return FAILED; + case SUCCESS: + break; + case NEED_MORE: + return NEED_MORE; + case FAILED: + default: + return FAILED; } in = eap_payload_create_data(data); + chunk_free(&data); payload = (payload_t*)in; if (payload->verify(payload) != SUCCESS) |