diff options
author | phk <phk@FreeBSD.org> | 2003-09-05 11:09:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-09-05 11:09:26 +0000 |
commit | 70376abeeae3dd3ffe01410af3528ee136e45a82 (patch) | |
tree | 28538e726c4b900cc9473ca5f6683cc774a04e9b /sys/dev/awi | |
parent | 2f3a7d160641c81c9cbab8cd1a77b79119295b9a (diff) | |
download | FreeBSD-src-70376abeeae3dd3ffe01410af3528ee136e45a82.zip FreeBSD-src-70376abeeae3dd3ffe01410af3528ee136e45a82.tar.gz |
Fix off-by-one error in array bounds check.
Diffstat (limited to 'sys/dev/awi')
-rw-r--r-- | sys/dev/awi/awi_wep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/awi/awi_wep.c b/sys/dev/awi/awi_wep.c index df074f5..c501b72 100644 --- a/sys/dev/awi/awi_wep.c +++ b/sys/dev/awi/awi_wep.c @@ -240,7 +240,7 @@ awi_wep_setalgo(sc, algo) int ctxlen; awi_crc_init(); /* XXX: not belongs here */ - if (algo < 0 || algo > sizeof(awi_wep_algo)/sizeof(awi_wep_algo[0])) + if (algo < 0 || algo >= sizeof(awi_wep_algo)/sizeof(awi_wep_algo[0])) return EINVAL; awa = &awi_wep_algo[algo]; if (awa->awa_name == NULL) |