Reading header.c I noticed a likely bug.

read_header is supposed zero in case of errors, right? If so, attached patch should probably apply.


--
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl
Index: header.c
===================================================================
RCS file: /cvsroot-dbmail/dbmail/header.c,v
retrieving revision 1.6
diff -u -r1.6 header.c
--- header.c	2004/03/19 16:27:38	1.6
+++ header.c	2004/04/02 12:44:18
@@ -108,7 +108,7 @@
 			my_free(tmpline);
 			/* NOTA BENE: Make sure that the caller knows to free
 			 * the header block even if there's been an error! */
-			return -1;
+			return 0;
 		}
 
 		/* The end of the header could be \n\n, \r\n\r\n,

Reply via email to