aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_identity
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-08-13 22:41:00 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-08-13 22:41:00 +0200
commit486893ee520a190a0736759af8ec2ff2249747c8 (patch)
treeae126430261e6febd26365336f87bfe86e7cf71c /src/libcharon/plugins/eap_identity
parentc4347aa86e60674ea4d76f18c27f699c418ab8db (diff)
downloadstrongswan-486893ee520a190a0736759af8ec2ff2249747c8.tar.bz2
strongswan-486893ee520a190a0736759af8ec2ff2249747c8.tar.xz
allow to send an EAP Identity response without matching request
Diffstat (limited to 'src/libcharon/plugins/eap_identity')
-rw-r--r--src/libcharon/plugins/eap_identity/eap_identity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/eap_identity/eap_identity.c b/src/libcharon/plugins/eap_identity/eap_identity.c
index 219b3d5bb..8277184f1 100644
--- a/src/libcharon/plugins/eap_identity/eap_identity.c
+++ b/src/libcharon/plugins/eap_identity/eap_identity.c
@@ -71,7 +71,7 @@ METHOD(eap_method_t, process_peer, status_t,
hdr = alloca(len);
hdr->code = EAP_RESPONSE;
- hdr->identifier = in->get_identifier(in);
+ hdr->identifier = in ? in->get_identifier(in) : 0;
hdr->length = htons(len);
hdr->type = EAP_IDENTITY;
memcpy(hdr->data, id.ptr, id.len);