diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 07:05:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 07:05:12 +0000 |
commit | 10b74a2455971310bf22d3d9c2127e4bc6f4225e (patch) | |
tree | 0983531e0ec9adea28cd5eb425d4aa351a311362 /package/madwifi/patches/373-sanity_check.patch | |
parent | 55b55f686124a40c859dbb0607af513263f1016f (diff) | |
download | upstream-10b74a2455971310bf22d3d9c2127e4bc6f4225e.tar.gz upstream-10b74a2455971310bf22d3d9c2127e4bc6f4225e.tar.bz2 upstream-10b74a2455971310bf22d3d9c2127e4bc6f4225e.zip |
madwifi: add some extra sanity checking
SVN-Revision: 12006
Diffstat (limited to 'package/madwifi/patches/373-sanity_check.patch')
-rw-r--r-- | package/madwifi/patches/373-sanity_check.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/madwifi/patches/373-sanity_check.patch b/package/madwifi/patches/373-sanity_check.patch new file mode 100644 index 0000000000..9c18a74148 --- /dev/null +++ b/package/madwifi/patches/373-sanity_check.patch @@ -0,0 +1,12 @@ +--- a/net80211/ieee80211_input.c ++++ b/net80211/ieee80211_input.c +@@ -238,6 +238,9 @@ + 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, |