INN commit: branches/2.5/innd (nc.c)
INN Commit
rra at isc.org
Sun Nov 15 09:22:25 UTC 2009
Date: Sunday, November 15, 2009 @ 01:22:25
Author: iulius
Revision: 8770
After successful authentication, MODE-READER is not an
available capability.
Modified:
branches/2.5/innd/nc.c
------+
nc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Modified: nc.c
===================================================================
--- nc.c 2009-11-15 09:22:15 UTC (rev 8769)
+++ nc.c 2009-11-15 09:22:25 UTC (rev 8770)
@@ -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