Package: inn2
Version: 2.4.2-3

When localmaxartsize is set to 0 (no local max article size) in inn.conf
nnrpd will take the localmaxartsize as being 0 and therefore refuse to
allocate more memory for incoming data in its readline routine causing
nnrpd to believe it has a read error when it next tries to read.

This problem can be simply fixed by adding an additional check to this
if statement for the case when localmaxartsize is 0 and attached is a
patch containing this fix.

This bug has been in inn2 probably since the beginning and I have
observed this behavior in both the current as well as oldstable versions.


diff -Naur inn-2.4.2/nnrpd/line.c inn-2.4.2-patch/nnrpd/line.c
--- inn-2.4.2/nnrpd/line.c	2004-12-21 23:21:19.000000000 -0500
+++ inn-2.4.2-patch/nnrpd/line.c	2006-03-16 16:26:36.000000000 -0500
@@ -119,7 +119,7 @@
 	    
 		/* don't grow the buffer bigger than the maximum
 		 * article size we'll accept */
-		if (newsize > (unsigned)PERMaccessconf->localmaxartsize)
+		if (newsize > (unsigned)PERMaccessconf->localmaxartsize && (unsigned)PERMaccessconf->localmaxartsize)
 		    newsize = PERMaccessconf->localmaxartsize;
 
 		/* if we're trying to grow from the same size, to the

Reply via email to