Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 3, 2023
1 parent c45d2be commit 775f67b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -3313,6 +3313,7 @@ if((authlen +EAPAUTH_SIZE) <= EAPOL_AUTHLEN_MAX)
zeiger->eapauthlen = authlen +EAPAUTH_SIZE;
memcpy(zeiger->eapol, eapauthptr, zeiger->eapauthlen);
}
mpfield = 0;
for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
{
if(zeiger->timestamp == 0) break;
Expand All @@ -3334,7 +3335,6 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
if(donotcleanflag == true)
{
mpfield = ST_M34E3;
if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap;
if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, messagelist +MESSAGELIST_MAX, zeiger, keyver, mpfield);
}
}
Expand Down Expand Up @@ -3478,6 +3478,7 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
}
}
}
mpfield = 0;
for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
{
if(zeiger->timestamp == 0) break;
Expand Down Expand Up @@ -3510,7 +3511,6 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
{
if(zeiger->rc == myaktreplaycount) continue;
}
if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap;
if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, zeiger, messagelist +MESSAGELIST_MAX, keyver, mpfield);
}
}
Expand Down Expand Up @@ -3540,7 +3540,6 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
{
if(zeiger->rc == myaktreplaycount) continue;
}
if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap;
if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, zeiger, messagelist +MESSAGELIST_MAX, keyver, mpfield);
}
}
Expand Down Expand Up @@ -3664,6 +3663,7 @@ if(wpainfolen >= RSNIE_LEN_MIN)
addpmkid(eaptimestamp, macclient, macap, tags.pmkid, PMKID_CLIENT);
}
}
mpfield = 0;
for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
{
if(zeiger->timestamp == 0) break;
Expand Down Expand Up @@ -3715,9 +3715,8 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap;
if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, messagelist +MESSAGELIST_MAX, zeiger, keyver, mpfield);
if(donotcleanflag == true)
mpfield = (ST_M32E3);
{
if(eaptimegap > eaptimegapmax) eaptimegapmax = eaptimegap;
mpfield = (ST_M32E3);
if(eaptimegap <= eapoltimeoutvalue) addhandshake(eaptimegap, rcgap, messagelist +MESSAGELIST_MAX, zeiger, keyver, mpfield);
}
}
Expand Down

0 comments on commit 775f67b

Please sign in to comment.