From 995d3e0589ac0e944f534f5c874d6e18151e80b7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 2 Jul 2007 10:59:51 +0000 Subject: [PATCH] fix a horrible memleak in madwifi SVN-Revision: 7850 --- package/madwifi/patches/125-plug_memleak.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/madwifi/patches/125-plug_memleak.patch diff --git a/package/madwifi/patches/125-plug_memleak.patch b/package/madwifi/patches/125-plug_memleak.patch new file mode 100644 index 000000000000..53a763965528 --- /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); -- 2.30.2