Index: ppp-2.4.9/pppd/eap.c =================================================================== --- ppp-2.4.9.orig/pppd/eap.c +++ ppp-2.4.9/pppd/eap.c @@ -2261,6 +2261,7 @@ eap_request(eap_state *esp, u_char *inp, eap_send_nak(esp, id, EAPT_SRP); break; } + esp->es_client.ea_namelen = strlen(esp->es_client.ea_name); /* Create the MSCHAPv2 response (and add to cache) */ unsigned char response[MS_CHAP2_RESPONSE_LEN+1]; // VLEN + VALUE