Date: Sat, 12 Dec 2009 12:31:11 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r200433 - stable/8/sys/net80211 Message-ID: <200912121231.nBCCVBEw052592@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sat Dec 12 12:31:11 2009 New Revision: 200433 URL: http://svn.freebsd.org/changeset/base/200433 Log: MFC r199186 to stable/8: Fix off by one in ieee80211_send_action_register Found by: phk's FlexeLint in September Reviewed by: rpaulo@ Modified: stable/8/sys/net80211/ieee80211_action.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/net80211/ieee80211_action.c ============================================================================== --- stable/8/sys/net80211/ieee80211_action.c Sat Dec 12 10:37:31 2009 (r200432) +++ stable/8/sys/net80211/ieee80211_action.c Sat Dec 12 12:31:11 2009 (r200433) @@ -105,7 +105,7 @@ ieee80211_send_action_register(int cat, meshlm_send_action[act] = f; return 0; case IEEE80211_ACTION_CAT_MESHPATH: - if (act > N(hwmp_send_action)) + if (act >= N(hwmp_send_action)) break; hwmp_send_action[act] = f; return 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912121231.nBCCVBEw052592>