INN commit: trunk/nnrpd (group.c)

INN Commit Russ_Allbery at isc.org
Fri Sep 26 22:57:05 UTC 2008


    Date: Friday, September 26, 2008 @ 15:57:05
  Author: iulius
Revision: 8055

Fix a bug which causes low and high counters for the currently selected
newsgroup to be changed even though the group is not changed.

Modified:
  trunk/nnrpd/group.c

---------+
 group.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: group.c
===================================================================
--- group.c	2008-09-26 22:41:48 UTC (rev 8054)
+++ group.c	2008-09-26 22:57:05 UTC (rev 8055)
@@ -63,8 +63,6 @@
         free(group);
         return;
     }
-    ARTlow = low;
-    ARThigh = high;
 
 #ifdef DO_PYTHON
     if (PY_use_dynamic) {
@@ -109,6 +107,11 @@
     ARTclose();
     GRPreport();
 
+    /* These values must be changed after the Python dynamic hook and everything
+     * that can lead to a failure of authorization. */
+    ARTlow = low;
+    ARThigh = high;
+
     /* Doing a GROUP command? */
     if (strcasecmp(av[0], "GROUP") == 0) {
 	if (count == 0) {



More information about the inn-committers mailing list