syslog-ng--mainline: fixed possible NULL deref on destination connection broken, fixed EOF detection
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-84> Revision: syslog-ng--mainline--2.0--patch-84 Archive: devel@balabit.hu--other-1 Creator: Balazs Scheidler <bazsi@balabit.hu> Date: Sat Oct 21 22:41:41 CEST 2006 Standard-date: 2006-10-21 20:41:41 GMT Modified-files: ChangeLog src/logwriter.c New-patches: devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-84 Summary: fixed possible NULL deref on destination connection broken, fixed EOF detection Keywords: 2006-10-21 Balazs Scheidler <bazsi@balabit.hu> * src/logwriter.c (log_writer_fd_prepare): when EOF detection is enabled specify G_IO_IN and G_IO_HUP in addition to normal flags, (log_writer_fd_dispatch): input on the destination fd is taken as EOF, (log_writer_broken): _deinit is moved after the call to notify, should not matter at all however the reference counting depends on the fact that log_pipe_notify() will not be called after _deinit finishes, in this specific case it would not really matter, (log_writer_deinit): remove unref of self->control, (log_writer_new): self->control is a borrowed reference, don't increase refcount Diff stats: ChangeLog | 26 ++++++++++++++++++++++++++ src/logwriter.c | 12 +++++------- 2 files changed, 31 insertions(+), 7 deletions(-)
participants (1)
-
bazsi@balabit.hu