allow to send an EAP Identity response without matching request
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 13 Aug 2010 20:41:00 +0000 (22:41 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 13 Aug 2010 20:41:00 +0000 (22:41 +0200)
src/libcharon/plugins/eap_identity/eap_identity.c

index 219b3d5..8277184 100644 (file)
@@ -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);