INN commit: branches/2.4/nnrpd (article.c)

INN Commit Russ_Allbery at isc.org
Thu Sep 4 17:06:52 UTC 2008


    Date: Thursday, September 4, 2008 @ 10:06:51
  Author: iulius
Revision: 8000

Fix a bug in the replies of XOVER/XHDR/XPAT when the group is empty.
Two initial replies were sent:

GROUP fr.rec.humour.selection
211 0 0 0 fr.rec.humour.selection
XOVER
420 No current article
224 162 fields follow
.

Modified:
  branches/2.4/nnrpd/article.c

-----------+
 article.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

Modified: article.c
===================================================================
--- article.c	2008-09-03 05:41:27 UTC (rev 7999)
+++ article.c	2008-09-04 17:06:51 UTC (rev 8000)
@@ -854,9 +854,7 @@
 
     /* Parse range. */
     if (!CMDgetrange(ac, av, &range, &DidReply)) {
-	if (!DidReply) {
-	    Reply("%d data follows\r\n", NNTP_OVERVIEW_FOLLOWS_VAL);
-	    Printf(".\r\n");
+	if (DidReply) {
 	    return;
 	}
     }
@@ -1028,10 +1026,7 @@
 
 	/* Range specified. */
 	if (!CMDgetrange(ac - 1, av + 1, &range, &DidReply)) {
-	    if (!DidReply) {
-		Reply("%d %s no matches follow (range)\r\n",
-		      NNTP_HEAD_FOLLOWS_VAL, header ? header : "\"\"");
-		Printf(".\r\n");
+	    if (DidReply) {
 		break;
 	    }
 	}



More information about the inn-committers mailing list