INN commit: branches/2.5/innd (nc.c)
INN Commit
rra at isc.org
Sun Nov 15 09:22:16 UTC 2009
Date: Sunday, November 15, 2009 @ 01:22:15
Author: iulius
Revision: 8769
Call the function for MODE CANCEL before the check on the
length of the arguments.
Modified:
branches/2.5/innd/nc.c
------+
nc.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Modified: nc.c
===================================================================
--- nc.c 2009-11-15 09:22:07 UTC (rev 8768)
+++ nc.c 2009-11-15 09:22:15 UTC (rev 8769)
@@ -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