INN commit: trunk/nnrpd (article.c)

INN Commit Russ_Allbery at isc.org
Sat Sep 6 14:07:24 UTC 2008


    Date: Saturday, September 6, 2008 @ 07:07:23
  Author: iulius
Revision: 8008

Return 501 and not 503 for "HDR :" or "HDR :bad:metadata:name".

Modified:
  trunk/nnrpd/article.c

-----------+
 article.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: article.c
===================================================================
--- article.c	2008-09-06 13:15:47 UTC (rev 8007)
+++ article.c	2008-09-06 14:07:23 UTC (rev 8008)
@@ -1112,7 +1112,9 @@
 
     /* We only allow :bytes and :lines for metadata. */
     if (!IsMetaLines && !IsMetaBytes) {
-        if (strncasecmp(header, ":", 1) == 0) {
+        p = av[1];
+        p++;
+        if (strncasecmp(header, ":", 1) == 0 && IsValidHeaderName(p)) {
             Reply("%d Unsupported metadata request\r\n",
                   NNTP_ERR_UNAVAILABLE, header);
             return;



More information about the inn-committers mailing list