[Midnightbsd-cvs] src [8935] trunk/sys/netinet/siftr.c: hasmask returned by hashinit is a valid index in the returned array.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 26 19:05:16 EDT 2016
Revision: 8935
http://svnweb.midnightbsd.org/src/?rev=8935
Author: laffer1
Date: 2016-09-26 19:05:16 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
hasmask returned by hashinit is a valid index in the returned array.
Modified Paths:
--------------
trunk/sys/netinet/siftr.c
Modified: trunk/sys/netinet/siftr.c
===================================================================
--- trunk/sys/netinet/siftr.c 2016-09-26 23:04:43 UTC (rev 8934)
+++ trunk/sys/netinet/siftr.c 2016-09-26 23:05:16 UTC (rev 8935)
@@ -1313,7 +1313,7 @@
* flow seen and freeing any malloc'd memory.
* The hash consists of an array of LISTs (man 3 queue).
*/
- for (i = 0; i < siftr_hashmask; i++) {
+ for (i = 0; i <= siftr_hashmask; i++) {
LIST_FOREACH_SAFE(counter, counter_hash + i, nodes,
tmp_counter) {
key = counter->key;
More information about the Midnightbsd-cvs
mailing list