summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2019-05-21 09:23:40 +0000
committerstsp <stsp@openbsd.org>2019-05-21 09:23:40 +0000
commit2ec852b36b3d90b673d96fbc93215206e63da30a (patch)
tree9a2301939946ebe819122452fe7cbfece94ad44a /sys
parentFix NULL check with wrong pointer in xhci_event_xfer_isoc(); CID 1480287 (diff)
downloadwireguard-openbsd-2ec852b36b3d90b673d96fbc93215206e63da30a.tar.xz
wireguard-openbsd-2ec852b36b3d90b673d96fbc93215206e63da30a.zip
Fix out-of-bounds array access in ieee80211_setbasicrates(); CID 1479607
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 030011203bf..d362284ff0b 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.72 2019/02/19 08:12:30 stsp Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.73 2019/05/21 09:23:40 stsp Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -844,6 +844,7 @@ ieee80211_setbasicrates(struct ieee80211com *ic)
{ 2, { 2, 4 } }, /* IEEE80211_MODE_11B */
{ 4, { 2, 4, 11, 22 } }, /* IEEE80211_MODE_11G */
{ 0 }, /* IEEE80211_MODE_11N */
+ { 0 }, /* IEEE80211_MODE_11AC */
};
enum ieee80211_phymode mode;
struct ieee80211_rateset *rs;