From 71b213df639c6f431603a7e9f0490cb2ab6c2a0f Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 28 Feb 2015 20:37:41 +0100 Subject: [PATCH] PPP, EAP: using MAXNAMELEN define instead of hardcoded 256 size for rhostname --- src/netif/ppp/eap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/eap.c b/src/netif/ppp/eap.c index 8cf90420..2a3bf43e 100644 --- a/src/netif/ppp/eap.c +++ b/src/netif/ppp/eap.c @@ -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