INN commit: trunk/innd (nc.c)

INN Commit rra at isc.org
Sun Oct 25 15:41:00 UTC 2009


    Date: Sunday, October 25, 2009 @ 08:41:00
  Author: iulius
Revision: 8694

After successful authentication, MODE-READER is not an
available capability.

Modified:
  trunk/innd/nc.c

------+
 nc.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: nc.c
===================================================================
--- nc.c	2009-10-25 14:22:53 UTC (rev 8693)
+++ nc.c	2009-10-25 15:41:00 UTC (rev 8694)
@@ -574,7 +574,7 @@
         WCHANappend(cp, NCterm, strlen(NCterm));
     }
 
-    if ((!innconf->noreader)
+    if (cp->CanAuthenticate && !innconf->noreader
         && (NNRPReason == NULL || innconf->readerswhenstopped)) {
         WCHANappend(cp, "MODE-READER", 11);
         WCHANappend(cp, NCterm, strlen(NCterm));
@@ -764,7 +764,7 @@
     cp->Start = cp->Next;
 
     if (cp->Nolist) {
-        if ((innconf->noreader)
+        if (!cp->CanAuthenticate || innconf->noreader
             || (NNRPReason != NULL && !innconf->readerswhenstopped))
             xasprintf(&buff, "%d Permission denied", NNTP_ERR_ACCESS);
         else
@@ -963,7 +963,7 @@
 
     cp->Start = cp->Next;
 
-    if ((innconf->noreader)
+    if (!cp->CanAuthenticate || innconf->noreader
      || (NNRPReason != NULL && !innconf->readerswhenstopped))
         snprintf(buff, sizeof(buff), "%d Permission denied",
                  NNTP_ERR_ACCESS);




More information about the inn-committers mailing list