diff options
author | 2015-12-18 07:42:24 +0000 | |
---|---|---|
committer | 2015-12-18 07:42:24 +0000 | |
commit | ceaff1ffc572a5c16dbc25d82d08d6e03c9e522c (patch) | |
tree | 3c3f21b2b6b140501cb3f0bed791b205f3b2b773 | |
parent | Remove an error-on-NULL condition after a mallocarray() call that cannot (diff) | |
download | wireguard-openbsd-ceaff1ffc572a5c16dbc25d82d08d6e03c9e522c.tar.xz wireguard-openbsd-ceaff1ffc572a5c16dbc25d82d08d6e03c9e522c.zip |
Fix out of bounds array access in ieee80211_setbasicrates().
found by + ok jsg@
-rw-r--r-- | sys/net80211/ieee80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index ce47775548a..f3d760ae960 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.52 2015/12/16 12:52:03 stsp Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.53 2015/12/18 07:42:24 stsp Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -730,6 +730,7 @@ ieee80211_setbasicrates(struct ieee80211com *ic) { 2, { 2, 4 } }, /* IEEE80211_MODE_11B */ { 4, { 2, 4, 11, 22 } }, /* IEEE80211_MODE_11G */ { 0 }, /* IEEE80211_MODE_TURBO */ + { 0 }, /* IEEE80211_MODE_11N */ }; enum ieee80211_phymode mode; struct ieee80211_rateset *rs; |