PPP, EAP: using MAXNAMELEN define instead of hardcoded 256 size for rhostname

This commit is contained in:
Sylvain Rochet 2015-02-28 20:37:41 +01:00
parent 7f3913ff58
commit 71b213df63

View File

@ -1332,7 +1332,7 @@ static void eap_request(ppp_pcb *pcb, u_char *inp, int id, int len) {
u_char vallen;
int secret_len;
char secret[MAXWORDLEN];
char rhostname[256];
char rhostname[MAXNAMELEN];
md5_context mdContext;
u_char hash[MD5_SIGNATURE_SIZE];
#ifdef USE_SRP
@ -1744,7 +1744,7 @@ static void eap_response(ppp_pcb *pcb, u_char *inp, int id, int len) {
u_char vallen;
int secret_len;
char secret[MAXSECRETLEN];
char rhostname[256];
char rhostname[MAXNAMELEN];
md5_context mdContext;
u_char hash[MD5_SIGNATURE_SIZE];
#ifdef USE_SRP