INN commit: trunk (innd/nc.c nnrpd/list.c)

INN Commit rra at isc.org
Sat Nov 14 00:03:59 UTC 2009


    Date: Friday, November 13, 2009 @ 16:03:58
  Author: iulius
Revision: 8738

Check LIST output for correct dot-stuffing.

Modified:
  trunk/innd/nc.c
  trunk/nnrpd/list.c

--------------+
 innd/nc.c    |    4 ++--
 nnrpd/list.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: innd/nc.c
===================================================================
--- innd/nc.c	2009-11-11 10:55:27 UTC (rev 8737)
+++ innd/nc.c	2009-11-14 00:03:58 UTC (rev 8738)
@@ -857,8 +857,8 @@
     /* Loop over all lines, sending the text and "\r\n". */
     while ((p = QIOread(qp)) != NULL) {
         /* Check that the output does not break the NNTP protocol. */
-        if (p[0] == '.' && p[1] == '\0') {
-            syslog(L_ERROR, "%s NClist single dot in file %s",
+        if (p[0] == '.' && p[1] != '.') {
+            syslog(L_ERROR, "%s NClist bad dot-stuffing in file %s",
                    CHANname(cp), cp->av[1]);
             continue;
         }

Modified: nnrpd/list.c
===================================================================
--- nnrpd/list.c	2009-11-11 10:55:27 UTC (rev 8737)
+++ nnrpd/list.c	2009-11-14 00:03:58 UTC (rev 8738)
@@ -256,8 +256,8 @@
     /* Read lines, ignore long ones. */
     while ((p = QIOread(qp)) != NULL) {
         /* Check that the output does not break the NNTP protocol. */
-        if (p[0] == '.' && p[1] == '\0') {
-            syslog(L_ERROR, "%s single dot in %s", Client.host, lp->File);
+        if (p[0] == '.' && p[1] != '.') {
+            syslog(L_ERROR, "%s bad dot-stuffing in %s", Client.host, lp->File);
             continue;
         }
         if (lp == &INFOmotd) {




More information about the inn-committers mailing list