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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to