inn 2.4.3 LISTGROUP with empty group

Urs Janßen urs at akk.org
Mon May 5 11:21:25 UTC 2008


inn-2.4.3 responds with a non multiline reponse to a LISTGROUP with
a valid but empty group, e.g.:

| LISTGROUP alt.os.linux.debian
| 211 0 0 0 alt.os.linux.debian
| GROUP alt.os.linux.debian
| 211 0 0 0 alt.os.linux.debian

the untested patch (I still run inn-2.2.3, I noticed that on a "remote"
server) below should fix this.

--- group.c.o	2008-05-05 13:12:26.458875000 +0200
+++ group.c	2008-05-05 13:13:30.990125000 +0200
@@ -151,6 +151,7 @@
            available it shouldn't hurt to return the same thing. */
         if (count == 0) {
             Reply("%d 0 0 0 %s\r\n", NNTP_GROUPOK_VAL, group);
+            Printf(".\r\n");
         } else if ((handle = OVopensearch(group, ARTlow, ARThigh)) != NULL) {
             Reply("%d %d %ld %ld %s\r\n", NNTP_GROUPOK_VAL, count, ARTlow,
                   ARThigh, group);



More information about the inn-bugs mailing list