mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-22 03:40:48 +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;
|
u_char vallen;
|
||||||
int secret_len;
|
int secret_len;
|
||||||
char secret[MAXWORDLEN];
|
char secret[MAXWORDLEN];
|
||||||
char rhostname[256];
|
char rhostname[MAXNAMELEN];
|
||||||
md5_context mdContext;
|
md5_context mdContext;
|
||||||
u_char hash[MD5_SIGNATURE_SIZE];
|
u_char hash[MD5_SIGNATURE_SIZE];
|
||||||
#ifdef USE_SRP
|
#ifdef USE_SRP
|
||||||
@ -1744,7 +1744,7 @@ static void eap_response(ppp_pcb *pcb, u_char *inp, int id, int len) {
|
|||||||
u_char vallen;
|
u_char vallen;
|
||||||
int secret_len;
|
int secret_len;
|
||||||
char secret[MAXSECRETLEN];
|
char secret[MAXSECRETLEN];
|
||||||
char rhostname[256];
|
char rhostname[MAXNAMELEN];
|
||||||
md5_context mdContext;
|
md5_context mdContext;
|
||||||
u_char hash[MD5_SIGNATURE_SIZE];
|
u_char hash[MD5_SIGNATURE_SIZE];
|
||||||
#ifdef USE_SRP
|
#ifdef USE_SRP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user