Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync openbsd net80211 #453

Merged
merged 13 commits into from
Dec 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix double-free on error in ieee80211_amsdu_decap().
  • Loading branch information
pigworlds committed Dec 12, 2020
commit 21ccac998dcff3f2f054dc0ae11304a4dabe6f2a
8 changes: 4 additions & 4 deletions itl80211/openbsd/net80211/ieee80211_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ ieee80211_amsdu_decap(struct ieee80211com *ic, mbuf_t m,
mbuf_pullup(&m, ETHER_HDR_LEN + LLC_SNAPFRAMELEN);
if (m == NULL) {
ic->ic_stats.is_rx_decap++;
break;
return;
}
eh = mtod(m, struct ether_header *);
/* examine 802.3 header */
Expand All @@ -1185,7 +1185,7 @@ ieee80211_amsdu_decap(struct ieee80211com *ic, mbuf_t m,
/* stop processing A-MSDU subframes */
ic->ic_stats.is_rx_decap++;
mbuf_freem(m);
break;
return;
}
llc = (struct llc *)&eh[1];
/* examine 802.2 LLC header */
Expand All @@ -1209,7 +1209,7 @@ ieee80211_amsdu_decap(struct ieee80211com *ic, mbuf_t m,
DPRINTF(("A-MSDU subframe too long (%d)\n", len));
ic->ic_stats.is_rx_decap++;
mbuf_freem(m);
break;
return;
}

/* "detach" our A-MSDU subframe from the others */
Expand All @@ -1218,7 +1218,7 @@ ieee80211_amsdu_decap(struct ieee80211com *ic, mbuf_t m,
/* stop processing A-MSDU subframes */
ic->ic_stats.is_rx_decap++;
mbuf_freem(m);
break;
return;
}
ieee80211_enqueue_data(ic, m, ni, mcast, ml);

Expand Down