INN commit: trunk/innd (nc.c)

INN Commit Russ_Allbery at isc.org
Tue Aug 26 18:51:43 UTC 2008


    Date: Tuesday, August 26, 2008 @ 11:51:43
  Author: iulius
Revision: 7974

MODE READER cannot be used after a successful authentication.

Modified:
  trunk/innd/nc.c

------+
 nc.c |    5 +++++
 1 file changed, 5 insertions(+)

Modified: nc.c
===================================================================
--- nc.c	2008-08-26 18:42:43 UTC (rev 7973)
+++ nc.c	2008-08-26 18:51:43 UTC (rev 7974)
@@ -663,6 +663,11 @@
 
     if (strcasecmp(p, "reader") == 0 && !innconf->noreader) {
         /* MODE READER */
+        if (!cp->CanAuthenticate) {
+            /* AUTHINFO has already been successfully used. */
+            NCwritereply(cp, NNTP_ACCESS);
+            return;
+        }
         if (NNRPReason != NULL && !innconf->readerswhenstopped) {
             /* Server paused or throttled. */
             char buff[SMBUF];



More information about the inn-committers mailing list