Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Dec 26, 2023
1 parent 2f440bb commit 6a617b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,6 @@ static ieee80211_proberequest_t *proberequest;
static u16 proberequestlen;
static essid_t essid;


proberequest = (ieee80211_proberequest_t*)payloadptr;
if((proberequestlen = payloadlen - IEEE80211_PROBERESPONSE_SIZE) < IEEE80211_IETAG_SIZE) return;
get_tag(TAG_SSID, &essid, proberequestlen, proberequest->ie);
Expand All @@ -2311,12 +2310,12 @@ if(attemptclientmax > 0)
{
for(i = 0; i < proberesponsetxmax; i++)
{
if((aprglist + proberesponseindex)->essidlen == 0)
if(proberesponseindex >= APRGLIST_MAX)
{
proberesponseindex = 0;
return;
}
if(proberesponseindex >= APRGLIST_MAX)
if((aprglist + proberesponseindex)->essidlen == 0)
{
proberesponseindex = 0;
return;
Expand Down

0 comments on commit 6a617b2

Please sign in to comment.