diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-13 22:41:00 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-13 22:41:00 +0200 |
commit | 486893ee520a190a0736759af8ec2ff2249747c8 (patch) | |
tree | ae126430261e6febd26365336f87bfe86e7cf71c /src/libcharon/plugins/eap_identity | |
parent | c4347aa86e60674ea4d76f18c27f699c418ab8db (diff) | |
download | strongswan-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.c | 2 |
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); |