INN commit: trunk/nnrpd (post.c)
INN Commit
rra at isc.org
Sat Mar 10 14:48:17 UTC 2018
Date: Saturday, March 10, 2018 @ 06:48:17
Author: iulius
Revision: 10261
Add check for unique Cancel-Key and Cancel-Lock header fields (RFC 8315) in nnrpd.
Modified:
trunk/nnrpd/post.c
--------+
post.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Modified: post.c
===================================================================
--- post.c 2018-03-10 14:47:23 UTC (rev 10260)
+++ post.c 2018-03-10 14:48:17 UTC (rev 10261)
@@ -34,7 +34,7 @@
** http://www.iana.org/assignments/message-headers/
*/
HEADER Table[] = {
- /* Name CanSet Type Size Value */
+ /* Name CanSet Type Size Value Body Len */
{ "Path", true, HTstd, 0, NULL, NULL, 0 },
{ "From", true, HTreq, 0, NULL, NULL, 0 },
{ "Newsgroups", true, HTreq, 0, NULL, NULL, 0 },
@@ -56,7 +56,7 @@
{ "NNTP-Posting-Host", false, HTobs, 0, NULL, NULL, 0 },
{ "Mime-Version", true, HTstd, 0, NULL, NULL, 0 },
{ "Content-Type", true, HTstd, 0, NULL, NULL, 0 },
- { "Content-Transfer-Encoding", true, HTstd, 0, NULL, NULL, 0 },
+ { "Content-Transfer-Encoding", true, HTstd, 0, NULL, NULL, 0 },
{ "X-Trace", false, HTobs, 0, NULL, NULL, 0 },
{ "X-Complaints-To", false, HTobs, 0, NULL, NULL, 0 },
{ "NNTP-Posting-Date", false, HTobs, 0, NULL, NULL, 0 },
@@ -77,6 +77,8 @@
{ "Article-Names", false, HTobs, 0, NULL, NULL, 0 },
{ "Article-Updates", false, HTobs, 0, NULL, NULL, 0 },
{ "See-Also", false, HTobs, 0, NULL, NULL, 0 },
+ { "Cancel-Key", true, HTstd, 0, NULL, NULL, 0 },
+ { "Cancel-Lock", true, HTstd, 0, NULL, NULL, 0 },
/* The Comments: and Original-Sender: header fields can appear more than once
* in the headers of an article. Consequently, we MUST NOT put them here. */
};
More information about the inn-committers
mailing list