INN commit: branches/2.5/innd (nc.c)

INN Commit rra at isc.org
Sun Nov 15 19:25:44 UTC 2009


    Date: Sunday, November 15, 2009 @ 11:25:44
  Author: iulius
Revision: 8815

Add two log messages for bad commands (too long NNTP command
or argument) in innd.

Modified:
  branches/2.5/innd/nc.c

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

Modified: nc.c
===================================================================
--- nc.c	2009-11-15 19:25:08 UTC (rev 8814)
+++ nc.c	2009-11-15 19:25:44 UTC (rev 8815)
@@ -1281,6 +1281,9 @@
                   || (StreamingOff || !cp->Streaming)) {
                   NCwritereply(cp, buff);
                   cp->Start = cp->Next;
+
+                  syslog(L_NOTICE, "%s bad_command %s", CHANname(cp),
+                         MaxLength(q, q));
                   break;
               }
           }
@@ -1302,6 +1305,9 @@
               || (StreamingOff || !cp->Streaming)) {
               NCwritereply(cp, buff);
               cp->Start = cp->Next;
+
+              syslog(L_NOTICE, "%s bad_command %s", CHANname(cp),
+                     MaxLength(q, q));
               break;
           }
       }




More information about the inn-committers mailing list