INN commit: trunk/storage (4 files)
INN Commit
Russ_Allbery at isc.org
Sun Aug 24 09:22:43 UTC 2008
Date: Sunday, August 24, 2008 @ 02:22:42
Author: iulius
Revision: 7960
Article headers do not contain their final \r\n.
The result of (at least) HEAD was not RFC-compliant.
Modified:
trunk/storage/cnfs/cnfs.c
trunk/storage/timecaf/timecaf.c
trunk/storage/timehash/timehash.c
trunk/storage/tradspool/tradspool.c
-----------------------+
cnfs/cnfs.c | 4 ++++
timecaf/timecaf.c | 2 ++
timehash/timehash.c | 2 ++
tradspool/tradspool.c | 2 ++
4 files changed, 10 insertions(+)
Modified: cnfs/cnfs.c
===================================================================
--- cnfs/cnfs.c 2008-08-24 08:47:08 UTC (rev 7959)
+++ cnfs/cnfs.c 2008-08-24 09:22:42 UTC (rev 7960)
@@ -1409,6 +1409,8 @@
art->data = private->base;
art->len = p - private->base;
}
+ /* Headers end just before the first empty line (\r\n). */
+ art->len = art->len - 2;
if (!SMpreopen) CNFSshutdowncycbuff(cycbuff);
return art;
}
@@ -1719,6 +1721,8 @@
art->data = private->base;
art->len = p - private->base;
}
+ /* Headers end just before the first empty line (\r\n). */
+ art->len = art->len - 2;
if (!SMpreopen) CNFSshutdowncycbuff(cycbuff);
return art;
}
Modified: timecaf/timecaf.c
===================================================================
--- timecaf/timecaf.c 2008-08-24 08:47:08 UTC (rev 7959)
+++ timecaf/timecaf.c 2008-08-24 09:22:42 UTC (rev 7960)
@@ -521,6 +521,8 @@
if (amount == RETR_HEAD) {
art->data = private->artdata;
art->len = p - private->artdata;
+ /* Headers end just before the first empty line (\r\n). */
+ art->len = art->len - 2;
return art;
}
Modified: timehash/timehash.c
===================================================================
--- timehash/timehash.c 2008-08-24 08:47:08 UTC (rev 7959)
+++ timehash/timehash.c 2008-08-24 09:22:42 UTC (rev 7960)
@@ -273,6 +273,8 @@
if (amount == RETR_HEAD) {
art->data = private->base;
art->len = p - private->base;
+ /* Headers end just before the first empty line (\r\n). */
+ art->len = art->len - 2;
return art;
}
Modified: tradspool/tradspool.c
===================================================================
--- tradspool/tradspool.c 2008-08-24 08:47:08 UTC (rev 7959)
+++ tradspool/tradspool.c 2008-08-24 09:22:42 UTC (rev 7960)
@@ -852,6 +852,8 @@
if (amount == RETR_HEAD) {
art->data = private->artbase;
art->len = p - private->artbase;
+ /* Headers end just before the first empty line (\r\n). */
+ art->len = art->len - 2;
return art;
}
More information about the inn-committers
mailing list