[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Leafnode 2.0b8: XPAT causes segfault



Hi,

> In nntpd.c: doselectedheader(),

there is also a file descriptor leak and an inappropriate response:

nntpd.c:1373 ff:

|         f = fopenart(messages);
|         if (!f) {
|             nntpprintf("430 No such article");
|             return;
|         }
|         l = fgetheader( f, header );
|         if ( !l || !(*l) ) {
|             nntpprintf("430 No such header: %s", header );
|             return;
|         }

430 means the article doesn't exist at all. A 221 response would be
appropriate.

In nntpd.c:1394 and 1428
        printf( "." );
should be:
        printf(".\r\n");

Stefan



-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list