Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net80211 Appease the overflow check, 4 is enough.



details:   https://anonhg.NetBSD.org/src/rev/7773f9ab8646
branches:  trunk
changeset: 829191:7773f9ab8646
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jan 21 14:13:49 2018 +0000

description:
Appease the overflow check, 4 is enough.

diffstat:

 sys/net80211/ieee80211_input.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 800f926f91b3 -r 7773f9ab8646 sys/net80211/ieee80211_input.c
--- a/sys/net80211/ieee80211_input.c    Sun Jan 21 14:01:55 2018 +0000
+++ b/sys/net80211/ieee80211_input.c    Sun Jan 21 14:13:49 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_input.c,v 1.109 2018/01/17 16:03:16 maxv Exp $       */
+/*     $NetBSD: ieee80211_input.c,v 1.110 2018/01/21 14:13:49 maxv Exp $       */
 
 /*
  * Copyright (c) 2001 Atsushi Onoe
@@ -37,7 +37,7 @@
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.81 2005/08/10 16:22:29 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.109 2018/01/17 16:03:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.110 2018/01/21 14:13:49 maxv Exp $");
 #endif
 
 #ifdef _KERNEL_OPT
@@ -2141,7 +2141,7 @@
                        break;
                case IEEE80211_ELEMID_TIM:
                        /* XXX ATIM? */
-                       IEEE80211_VERIFY_LENGTH(frm[1], 5);
+                       IEEE80211_VERIFY_LENGTH(frm[1], 4);
                        scan.sp_tim = frm;
                        scan.sp_timoff = frm - mtod(m0, u_int8_t *);
                        break;



Home | Main Index | Thread Index | Old Index