INN commit: trunk/innd (nc.c)

INN Commit rra at isc.org
Sun Oct 25 14:22:53 UTC 2009


    Date: Sunday, October 25, 2009 @ 07:22:53
  Author: iulius
Revision: 8693

Call the function for MODE CANCEL before the check on the
length of the arguments.

Modified:
  trunk/innd/nc.c

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

Modified: nc.c
===================================================================
--- nc.c	2009-10-25 14:21:01 UTC (rev 8692)
+++ nc.c	2009-10-25 14:22:53 UTC (rev 8693)
@@ -1134,6 +1134,12 @@
 	cp->Argument = NULL;
       }
 
+      /* When MODE CANCEL is used... */
+      if (cp->State == CScancel) {
+          NCcancel(cp, ac, av);
+          break;
+      }
+
       /* If the line is too long, we have to make sure that
        * no recognized command has been sent. */
       validcommandtoolong = false;
@@ -1170,12 +1176,6 @@
         break;
       }
 
-      /* After MODE CANCEL. */
-      if (cp->State == CScancel) {
-	NCcancel(cp, ac, av);
-	break;
-      }
-
       /* Loop through the command table. */
       for (dp = NCcommands; dp < ARRAY_END(NCcommands); dp++) {
 	if (strcasecmp(av[0], dp->Name) == 0) {




More information about the inn-committers mailing list