chiark / gitweb /
Better message for 503 from peer on idle conn. Conventional macro protection for...
[inn-innduct.git] / debian / patches / u_xover_duplicate_reply
1 Fix a bug in the replies of XOVER/XHDR/XPAT when the group is empty.
2 Two initial replies were sent.
3
4 http://inn.eyrie.org/viewcvs/branches/2.4/nnrpd/article.c?r1=8000&r2=7999&pathrev=8000&view=patch
5
6 --- 2.4/nnrpd/article.c 2008/09/03 05:41:27     7999
7 +++ 2.4/nnrpd/article.c 2008/09/04 17:06:51     8000
8 @@ -854,9 +854,7 @@
9  
10      /* Parse range. */
11      if (!CMDgetrange(ac, av, &range, &DidReply)) {
12 -       if (!DidReply) {
13 -           Reply("%d data follows\r\n", NNTP_OVERVIEW_FOLLOWS_VAL);
14 -           Printf(".\r\n");
15 +       if (DidReply) {
16             return;
17         }
18      }
19 @@ -1028,10 +1026,7 @@
20  
21         /* Range specified. */
22         if (!CMDgetrange(ac - 1, av + 1, &range, &DidReply)) {
23 -           if (!DidReply) {
24 -               Reply("%d %s no matches follow (range)\r\n",
25 -                     NNTP_HEAD_FOLLOWS_VAL, header ? header : "\"\"");
26 -               Printf(".\r\n");
27 +           if (DidReply) {
28                 break;
29             }
30         }