ppp chap now hard coded to 16 and 49 bytes
@@ -2405,6 +2405,14 @@ if(usernamelen > 255)
{
usernamelen = 255;
}
+if(usernamelen == 0)
+ {
+ return;
+ }
+if((count != 16) && (count != 49))
+ {
+ return;
+ }
if(leap2liste == NULL)
{
leap2liste = malloc(LEAPLIST_SIZE);
@@ -4611,22 +4619,6 @@ if(caplen < chaplen)
{
return;
}
-if(chaplen < 16)
- {
- return;
- }
-if(authlen < 16)
- {
- return;
- }
-if(authlen > (chaplen -CHAP_SIZE))
- {
- return;
- }
-if((chaplen -authlen -CHAP_SIZE) < 1)
- {
- return;
- }
if((chap->code == CHAP_CODE_REQ) || (chap->code == CHAP_CODE_RESP))
{
