summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/373-sanity_check.patch
blob: 06c6acf08ea1a2e41d62228d330237622b1dd24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
@@ -250,6 +250,9 @@ ieee80211_input(struct ieee80211vap * va
 	if (vap->iv_opmode == IEEE80211_M_MONITOR)
 		goto out;
 
+	if (!skb->data)
+		goto out;
+
 	if (skb->len < sizeof(struct ieee80211_frame_min)) {
 		IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
 			ni->ni_macaddr, NULL,