Skip to content

Commit

Permalink
besside-ng: Skipping broken frames.
Browse files Browse the repository at this point in the history
Merge pull request #115 from #115
Patch by enotophob

git-svn-id: http://svn.aircrack-ng.org/trunk@2903 28c6078b-6c39-48e3-add9-af49d547ecab
  • Loading branch information
Mister-X- committed May 24, 2017
1 parent 93d5f78 commit 24946aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/besside-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -2550,10 +2550,16 @@ static void wifi_read(void)
struct ieee80211_frame* wh = (struct ieee80211_frame*) buf;
struct network *n;

memset(buf, 0, sizeof(buf));

rd = wi_read(s->s_wi, buf, sizeof(buf), &ri);
if (rd < 0)
err(1, "wi_read()");

if (rd < sizeof(struct ieee80211_frame)) {
return;
}

s->s_ri = &ri;

n = network_update(wh);
Expand Down

0 comments on commit 24946aa

Please sign in to comment.