INN commit: trunk/nnrpd (group.c)
INN Commit
Russ_Allbery at isc.org
Sun Aug 24 17:55:38 UTC 2008
Date: Sunday, August 24, 2008 @ 10:55:37
Author: iulius
Revision: 7968
Fix a bug in the result of GROUP for NFS readers: the count
could exceed the difference between the high and the low water marks!
Modified:
trunk/nnrpd/group.c
---------+
group.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Modified: group.c
===================================================================
--- group.c 2008-08-24 17:54:22 UTC (rev 7967)
+++ group.c 2008-08-24 17:55:37 UTC (rev 7968)
@@ -136,7 +136,9 @@
if (arrived + innconf->nfsreaderdelay > now) {
ARThigh = prev;
/* No need to update the count since it is only
- * an estimate. */
+ * an estimate but make sure it is not too high. */
+ if (count > ARThigh - ARTlow)
+ count = ARThigh - ARTlow + 1;
break;
}
prev = i;
More information about the inn-committers
mailing list