INN commit: trunk/nnrpd (nnrpd.c)
INN Commit
rra at isc.org
Fri Oct 16 20:42:53 UTC 2009
Date: Friday, October 16, 2009 @ 13:42:53
Author: iulius
Revision: 8664
For unimplemented NNTP commands like SLAVE, do not return 501
when the command line is too long, but 500.
Modified:
trunk/nnrpd/nnrpd.c
---------+
nnrpd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Modified: nnrpd.c
===================================================================
--- nnrpd.c 2009-10-16 20:41:19 UTC (rev 8663)
+++ nnrpd.c 2009-10-16 20:42:53 UTC (rev 8664)
@@ -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