INN commit: branches/2.5/nnrpd (nnrpd.c)

INN Commit rra at isc.org
Sun Nov 15 09:00:36 UTC 2009


    Date: Sunday, November 15, 2009 @ 01:00:35
  Author: iulius
Revision: 8742

For unimplemented NNTP commands like SLAVE, do not return 501
when the command line is too long, but 500.

Modified:
  branches/2.5/nnrpd/nnrpd.c

---------+
 nnrpd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: nnrpd.c
===================================================================
--- nnrpd.c	2009-11-15 09:00:20 UTC (rev 8741)
+++ nnrpd.c	2009-11-15 09:00:35 UTC (rev 8742)
@@ -1360,7 +1360,8 @@
                  * no recognized command has been sent. */
                 validcommandtoolong = false;
                 for (cp = CMDtable; cp->Name; cp++) {
-                    if (strncasecmp(cp->Name, p, strlen(cp->Name)) == 0) {
+                    if ((cp->Function != CMD_unimp) &&
+                        (strncasecmp(cp->Name, p, strlen(cp->Name)) == 0)) {
                         if (p[strlen(cp->Name)] == ' ') {
                             validcommandtoolong = true;
                             break;




More information about the inn-committers mailing list