INN commit: trunk/nnrpd (nnrpd.c)
INN Commit
Russ_Allbery at isc.org
Thu Aug 28 06:08:02 UTC 2008
Date: Wednesday, August 27, 2008 @ 23:08:01
Author: iulius
Revision: 7981
Fix a subtle parsing issue: when the line is too long, 501 was returned
instead of 500 if the base command was not followed by a space.
Modified:
trunk/nnrpd/nnrpd.c
---------+
nnrpd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Modified: nnrpd.c
===================================================================
--- nnrpd.c 2008-08-27 21:18:18 UTC (rev 7980)
+++ nnrpd.c 2008-08-28 06:08:01 UTC (rev 7981)
@@ -1125,7 +1125,8 @@
validcommandtoolong = false;
for (cp = CMDtable; cp->Name; cp++)
if (strncasecmp(cp->Name, p, strlen(cp->Name)) == 0) {
- validcommandtoolong = true;
+ if (p[strlen(cp->Name)] == ' ')
+ validcommandtoolong = true;
break;
}
Reply("%d Line too long\r\n",
More information about the inn-committers
mailing list