INN commit: trunk/nnrpd (post.c)
INN Commit
rra at isc.org
Sun Jul 12 15:14:26 UTC 2015
Date: Sunday, July 12, 2015 @ 08:14:25
Author: iulius
Revision: 9921
nnrpd: fix the parsing of continuation lines in headers
Empty headers were not properly parsed.
Thanks to Richard Kettlewell for the bug report.
Modified:
trunk/nnrpd/post.c
--------+
post.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Modified: post.c
===================================================================
--- post.c 2015-07-12 13:48:04 UTC (rev 9920)
+++ post.c 2015-07-12 15:14:25 UTC (rev 9921)
@@ -226,8 +226,10 @@
hp->Value = &p[hp->Size + 1];
/* '\r\n' is replaced with '\n', and unnecessary to consider
* '\r'. */
- for (q = &p[hp->Size + 1]; ISWHITE(*q) || *q == '\n'; q++)
- continue;
+ for (q = &p[hp->Size + 1];
+ ISWHITE(*q) || (*q == '\n' && ISWHITE(q[1])); q++) {
+ continue;
+ }
hp->Body = q;
break;
}
More information about the inn-committers
mailing list