INN commit: trunk/nnrpd (post.c)
INN Commit
rra at isc.org
Sun Dec 27 19:23:42 UTC 2009
Date: Sunday, December 27, 2009 @ 11:23:42
Author: iulius
Revision: 8867
Contrary to RFC 1036, the presence of a Subject: header field
starting with the string "cmsg " MUST NOT cause an article to be
interpreted as a control message. (RFC 5537)
Modified:
trunk/nnrpd/post.c
--------+
post.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
Modified: post.c
===================================================================
--- post.c 2009-12-27 19:17:43 UTC (rev 8866)
+++ post.c 2009-12-27 19:23:42 UTC (rev 8867)
@@ -391,18 +391,9 @@
/* Newsgroups: is checked later. */
- if (HDR(HDR__CONTROL)) {
+ if (HDR(HDR__CONTROL) != NULL) {
if ((error = CheckControl(HDR(HDR__CONTROL))) != NULL)
return error;
- } else {
- p = HDR(HDR__SUBJECT);
- if (p == NULL)
- return "Required Subject: header is missing";
- if (strncmp(p, "cmsg ", 5) == 0) {
- HDR_SET(HDR__CONTROL, p + 5);
- if ((error = CheckControl(HDR(HDR__CONTROL))) != NULL)
- return error;
- }
}
/* Set the Message-ID: header. */
More information about the inn-committers
mailing list