INN commit: trunk/nnrpd (post.c)

INN Commit rra at isc.org
Sat Jul 11 18:54:50 UTC 2015


    Date: Saturday, July 11, 2015 @ 11:54:50
  Author: iulius
Revision: 9918

Add a comment to keep in mind that nnrpd must not reject proto-articles with empty headers

Modified:
  trunk/nnrpd/post.c

--------+
 post.c |    4 ++++
 1 file changed, 4 insertions(+)

Modified: post.c
===================================================================
--- post.c	2015-07-07 16:37:51 UTC (rev 9917)
+++ post.c	2015-07-11 18:54:50 UTC (rev 9918)
@@ -363,6 +363,10 @@
 	}
 	if (hp->Value) {
 	    hp->Len = TrimSpaces(hp->Value);
+            /* If the header is empty, we just remove it.  We do not reject
+             * the article, contrary to what an injecting agent is supposed
+             * to do per Section 3.5 of RFC 5537.  (A revision to RFC 5537
+             * may someday allow again that existing and useful feature.) */
 	    if (hp->Len == 0)
 		hp->Value = hp->Body = NULL;
 	}



More information about the inn-committers mailing list