INN commit: branches/2.5 (doc/pod/news.pod nnrpd/article.c)

INN Commit rra at isc.org
Sun Jan 17 13:12:29 UTC 2010


    Date: Sunday, January 17, 2010 @ 05:12:29
  Author: iulius
Revision: 8898

Fixed a bug when HDR, XHDR and XPAT are used when virtualhost is set
to true in readers.conf.  The Xref: header of articles posted to only
one newsgroup appears empty.

The offset count is too large by one in virtual hosting.

Modified:
  branches/2.5/doc/pod/news.pod
  branches/2.5/nnrpd/article.c

------------------+
 doc/pod/news.pod |    6 ++++++
 nnrpd/article.c  |    2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

Modified: doc/pod/news.pod
===================================================================
--- doc/pod/news.pod	2010-01-17 13:11:27 UTC (rev 8897)
+++ doc/pod/news.pod	2010-01-17 13:12:29 UTC (rev 8898)
@@ -183,6 +183,12 @@
 
 =item *
 
+Fixed a bug when HDR, XHDR and XPAT were used when I<virtualhost> was set
+to true in F<readers.conf>.  The Xref: header of articles posted to only
+one newsgroup appeared empty.
+
+=item *
+
 Fixed a bug in B<tdx-util> which was not properly parsing empty overview
 fields when called with B<-A> or B<-F>.
 

Modified: nnrpd/article.c
===================================================================
--- nnrpd/article.c	2010-01-17 13:11:27 UTC (rev 8897)
+++ nnrpd/article.c	2010-01-17 13:12:29 UTC (rev 8898)
@@ -876,7 +876,7 @@
 	warn("malformed Xref: `%s'", field);
 	goto fail;
     }
-    offset = space + 1 - p;
+    offset = space - p;
     space = strchr(p + offset, ' ');
     if (space == NULL) {
 	warn("malformed Xref: `%s'", field);




More information about the inn-committers mailing list