mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-21 09:39:58 +00:00
PPP, EAP: using MAXNAMELEN define instead of hardcoded 256 size for rhostname
This commit is contained in:
parent
7f3913ff58
commit
71b213df63
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user