[syslog-ng] syslog-ng and empty lines

Balazs Scheidler bazsi@balabit.hu
Wed, 5 Apr 2000 07:57:17 +0200


Many of you reported that syslog-ng emits empty loglines beginning with
1.4.2. This patch should fix the problem:

diff -u -r1.23.2.2 sources.c
--- sources.c   2000/03/24 10:57:28     1.23.2.2
+++ sources.c   2000/04/05 05:54:05
@@ -118,7 +118,8 @@

                length = end - start;

-               do_handle_line(closure, length, start, salen ? (abstract_addr *) &sabuf : NULL , salen);
+               if (length)
+                       do_handle_line(closure, length, start, salen ? (abstract_addr *) &sabuf : NULL , salen);

                start = end + 1;
 #if 0


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt