aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-02 10:59:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-02 10:59:51 +0000
commit551ed8e7b04d5252ea8fde287f97daa982738485 (patch)
tree51f2197d1dd0098dad5471016bf3d78ba7377c8c /package/madwifi
parented904c57b36b756ae7540292bbc44efad7fbd0d6 (diff)
downloadupstream-551ed8e7b04d5252ea8fde287f97daa982738485.tar.gz
upstream-551ed8e7b04d5252ea8fde287f97daa982738485.tar.bz2
upstream-551ed8e7b04d5252ea8fde287f97daa982738485.zip
fix a horrible memleak in madwifi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7850 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/125-plug_memleak.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/madwifi/patches/125-plug_memleak.patch b/package/madwifi/patches/125-plug_memleak.patch
new file mode 100644
index 0000000000..53a7639655
--- /dev/null
+++ b/package/madwifi/patches/125-plug_memleak.patch
@@ -0,0 +1,13 @@
+Index: madwifi-ng-r2420-20070602/net80211/ieee80211_input.c
+===================================================================
+--- madwifi-ng-r2420-20070602.orig/net80211/ieee80211_input.c 2007-07-02 12:50:31.839514500 +0200
++++ madwifi-ng-r2420-20070602/net80211/ieee80211_input.c 2007-07-02 12:51:10.309918750 +0200
+@@ -2832,7 +2832,7 @@
+ ieee80211_add_scan(vap, &scan, wh, subtype, rssi, rstamp);
+ return;
+ }
+- if (scan.capinfo & IEEE80211_CAPINFO_IBSS) {
++ if ((vap->iv_opmode == IEEE80211_M_IBSS) && (scan.capinfo & IEEE80211_CAPINFO_IBSS)) {
+ if (!IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
+ /* Create a new entry in the neighbor table. */
+ ni = ieee80211_add_neighbor(vap, wh, &scan);