]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
store EAP identifier on peer side
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 5 Apr 2011 13:45:51 +0000 (15:45 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 5 Apr 2011 13:45:51 +0000 (15:45 +0200)
src/libcharon/plugins/eap_gtc/eap_gtc.c

index 7ae16d790f73af4e04c7b432a141b7417ca57320..c3ab07de061e4c44268c924f1e1a4cc1e4e12f31 100644 (file)
@@ -174,10 +174,11 @@ METHOD(eap_method_t, process_peer, status_t,
 
        /* TODO: According to the draft we should "SASLprep" password, RFC4013. */
 
+       this->identifier = in->get_identifier(in);
        res = alloca(sizeof(eap_gtc_header_t) + len);
        res->length = htons(sizeof(eap_gtc_header_t) + len);
        res->code = EAP_RESPONSE;
-       res->identifier = in->get_identifier(in);
+       res->identifier = this->identifier;
        res->type = EAP_GTC;
        memcpy(res->data, key.ptr, len);